tstagit-index.c: add link to release root dir - stagit - [fork] customized build of stagit, the static git page generator
(HTM) git clone git://src.adamsgaard.dk/stagit
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 0e29f85d1198c7e3ae7e55a501308bb6c081ff67
(DIR) parent 83593671123d4d47e736a08354b38ef604de3977
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 23 Nov 2020 14:16:57 +0100
stagit-index.c: add link to release root dir
Diffstat:
M stagit-index.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/stagit-index.c b/stagit-index.c
t@@ -13,6 +13,7 @@ static git_repository *repo;
static const char *relpath = "";
static char description[255] = "Anders' Repositories";
+static char releaselink[255] = "<a href=\"https://src.adamsgaard.dk/releases/\">Releases</a>";
static char home_link[255] = "<a href=\"https://adamsgaard.dk\">Back to adamsgaard.dk</a>";
static char *name = "";
static char owner[255];
t@@ -75,6 +76,7 @@ writeheader(FILE *fp)
fprintf(fp, "<table style=\"width:100%%\">\n<tr><td style=\"white-space:nowrap\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></td>\n"
"<td style=\"width:99%%\"><span class=\"desc\">", relpath);
xmlencode(fp, description, strlen(description));
+ fprintf(fp, "<br />\n%s", releaselink);
fputs("</span></td>", fp);
fprintf(fp, "<td style=\"text-align:right;white-space:nowrap\">%s</td>", home_link);
fputs("</tr><tr><td></td><td>\n"