commit 014cc2872c603f3940af468cbeba8fe892caea2e
parent e16bc085534a4869d188d71cfc3b9050aa22d2ec
Author: mjkloeckner <martin.cachari@gmail.com>
Date: Tue, 1 Sep 2026 12:54:51 -0300
Remove trailing '/files.html' from index repo url
Diffstat:
1 file changed, 28 insertions(+), 0 deletions(-)
diff --git a/stagit-index.c b/stagit-index.c
@@ -166,6 +166,7 @@ writelog(FILE *fp)
/* xmlencode(fp, stripped_name, strlen(stripped_name)); */
/* fputs("</a></td>", fp); */
+ /*
fputs("<tr id=\"entry\" onclick=\"window.location='/",fp);
percentencode(fp, stripped_name, strlen(stripped_name));
fputs("';\">", fp);
@@ -191,6 +192,33 @@ writelog(FILE *fp)
fputs("<td id=\"last-commit\"><a href=\"", fp);
percentencode(fp, stripped_name, strlen(stripped_name));
fputs("/files.html\">", fp);
+ */
+
+ fputs("<tr id=\"entry\" onclick=\"window.location='/",fp);
+ percentencode(fp, stripped_name, strlen(stripped_name));
+ fputs("';\">", fp);
+
+ fputs("<td id=\"name\"><a href=\"",fp);
+ percentencode(fp, stripped_name, strlen(stripped_name));
+ fputs("\">", fp);
+ xmlencode(fp, stripped_name, strlen(stripped_name));
+ fputs("</a></td>", fp);
+
+ fputs("<td id=\"description\"><a href=\"", fp);
+ percentencode(fp, stripped_name, strlen(stripped_name));
+ fputs("\">", fp);
+ xmlencode(fp, description, strlen(description));
+ fputs("</a></td>", fp);
+
+ fputs("<td id=\"owner\"><a href=\"", fp);
+ percentencode(fp, stripped_name, strlen(stripped_name));
+ fputs("\">", fp);
+ xmlencode(fp, owner, strlen(owner));
+ fputs("</a></td>", fp);
+
+ fputs("<td id=\"last-commit\"><a href=\"", fp);
+ percentencode(fp, stripped_name, strlen(stripped_name));
+ fputs("\">", fp);
if (author)
printtimeshort(fp, &(author->when));