summaryrefslogtreecommitdiffabout
authorLars Hjemli <hjemli@gmail.com>2007-05-14 22:22:03 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-05-14 22:22:17 (UTC)
commit6fb7d09fea94b3dd6932469283358cb24f1e7e29 (patch) (side-by-side diff)
treeef8b1954a585006746bf528962f122d8fb3f597c
parent495e39677326284ea13b2f6d76195d6800c2a450 (diff)
downloadcgit-6fb7d09fea94b3dd6932469283358cb24f1e7e29.zip
cgit-6fb7d09fea94b3dd6932469283358cb24f1e7e29.tar.gz
cgit-6fb7d09fea94b3dd6932469283358cb24f1e7e29.tar.bz2
ui-shared.c: fix whitespace breakage
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--ui-shared.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c
index bca50aa..6f5cf2b 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -60,65 +60,64 @@ char *cgit_repourl(const char *reponame)
char *cgit_pageurl(const char *reponame, const char *pagename,
const char *query)
{
if (cgit_virtual_root) {
return fmt("%s/%s/%s/?%s", cgit_virtual_root, reponame,
pagename, query);
} else {
return fmt("?r=%s&p=%s&%s", reponame, pagename, query);
}
}
char *cgit_currurl()
{
if (!cgit_virtual_root)
return "./cgit.cgi";
else if (cgit_query_page)
return fmt("%s/%s/%s/", cgit_virtual_root, cgit_query_repo, cgit_query_page);
else if (cgit_query_repo)
return fmt("%s/%s/", cgit_virtual_root, cgit_query_repo);
else
return fmt("%s/", cgit_virtual_root);
}
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");
htmlf("Last-Modified: %s\n", http_date(item->st.st_mtime));
htmlf("Expires: %s\n", http_date(item->st.st_mtime +
ttl_seconds(item->ttl)));
html("\n");
html(cgit_doctype);
html("<html>\n");
html("<head>\n");
html("<title>");
html_txt(title);
html("</title>\n");
htmlf("<meta name='generator' content='cgit v%s'/>\n", cgit_version);
html("<link rel='stylesheet' type='text/css' href='");
html_attr(cgit_css);
html("'/>\n");
html("</head>\n");
html("<body>\n");
}
void cgit_print_docend()
{
html("</td></tr></table>");
html("</body>\n</html>\n");
}
void cgit_print_pageheader(char *title, int show_search)
{
html("<table id='layout'>");