X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/74620f12e4f7e91cb0a0b4ca731e07272d1b65f6..40dea5254a64408c8707d31374fbea170c62e42f:/ui-shared.c
diff --git a/ui-shared.c b/ui-shared.c
index cb8a8df..9ec4be8 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -60,6 +60,18 @@ char *cgit_pageurl(const char *reponame, const char *pagename,
}
}
+
+void cgit_print_date(unsigned long secs)
+{
+ char buf[32];
+ struct tm *time;
+
+ time = gmtime(&secs);
+ strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", time);
+ html_txt(buf);
+
+}
+
void cgit_print_docstart(char *title, struct cacheitem *item)
{
html("Content-Type: text/html; charset=utf-8\n");
@@ -92,6 +104,10 @@ void cgit_print_pageheader(char *title)
htmlf("", cgit_logo_link);
htmlf("
\n", cgit_logo);
htmlf("");
+ if (cgit_query_repo)
+ htmlf("", cgit_repourl(cgit_query_repo));
html_txt(title);
+ if (cgit_query_repo)
+ html("");
html("");
}