added return to home
authorGeorgios Atheridis <georgios@atheridis.com>
Mon, 26 Dec 2022 07:03:39 +0000 (07:03 +0000)
committerGeorgios Atheridis <georgios@atheridis.com>
Mon, 26 Dec 2022 07:03:39 +0000 (07:03 +0000)
Makefile
stagit-index.c
stagit.c

index a037df527dc43319e6b9a05eca81f398c93f3a25..8353dfc0c5f7aa3f49172f670a5b4f3552e66ed8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ STAGIT_CPPFLAGS = -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE
 
 # Uncomment to enable workaround for older libgit2 which don't support this
 # option. This workaround will be removed in the future *pinky promise*.
-#STAGIT_CFLAGS += -DGIT_OPT_SET_OWNER_VALIDATION=-1
+STAGIT_CFLAGS += -DGIT_OPT_SET_OWNER_VALIDATION=-1
 
 SRC = \
        stagit.c\
index 6402296bd1c0d614467e9ad8d04f52dd48c6cf3b..30cbe8701ee244c6f30b53ca203a2029d521837b 100644 (file)
@@ -104,10 +104,12 @@ writeheader(FILE *fp)
        fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath);
        fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
        fputs("</head>\n<body>\n", fp);
-       fprintf(fp, "<table>\n<tr><td><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></td>\n"
+        fprintf(fp, "<table id=\"menu\">\n<tr><td><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></td>\n"
                "<td><span class=\"desc\">", relpath);
        xmlencode(fp, description, strlen(description));
        fputs("</span></td></tr><tr><td></td><td>\n"
+               "</td><td id=\"return-to-home\">\n"
+               "<a href=\"https://atheridis.com\">Return to Home</a>\n"
                "</td></tr>\n</table>\n<hr/>\n<div id=\"content\">\n"
                "<table id=\"index\"><thead>\n"
                "<tr><td><b>Name</b></td><td><b>Description</b></td><td><b>Owner</b></td>"
index 61c9a53b1c5a8e30024c45b7efabb36db6ae24ec..244646697f5a95d37bb3e946ca57b41860f4ac5a 100644 (file)
--- a/stagit.c
+++ b/stagit.c
@@ -519,7 +519,7 @@ writeheader(FILE *fp, const char *title)
        xmlencode(fp, name, strlen(name));
        fprintf(fp, " Atom Feed (tags)\" href=\"%stags.xml\" />\n", relpath);
        fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
-       fputs("</head>\n<body>\n<table><tr><td>", fp);
+       fputs("</head>\n<body>\n<table id=\"menu\"><tr><td>", fp);
        fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>",
                relpath, relpath);
        fputs("</td><td><h1>", fp);
@@ -547,6 +547,8 @@ writeheader(FILE *fp, const char *title)
        if (license)
                fprintf(fp, " | <a href=\"%sfile/%s.html\">LICENSE</a>",
                        relpath, license);
+       fputs("</td><td id=\"return-to-home\">\n", fp);
+       fprintf(fp, "<a href=\"https://atheridis.com\">Return to Home</a>", relpath);
        fputs("</td></tr></table>\n<hr/>\n<div id=\"content\">\n", fp);
 }