aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.c
diff options
context:
space:
mode:
authorJason A. Donenfeld2016-02-22 16:04:15 +0100
committerJason A. Donenfeld2016-02-22 18:40:13 +0100
commit5f2664f13c90f083b827d8fafa6cfc01c0c4f513 (patch)
tree76fff0ba1df2d97bc6e814311ed6494724c47101 /ui-shared.c
parent75298209bf8386656b82f185e2901690ac5b671c (diff)
downloadcgit-5f2664f13c90f083b827d8fafa6cfc01c0c4f513.tar.gz
cgit-5f2664f13c90f083b827d8fafa6cfc01c0c4f513.tar.bz2
cgit-5f2664f13c90f083b827d8fafa6cfc01c0c4f513.zip
ui-shared: add homepage to tabs
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 03dcc08..2c91e75 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -997,6 +997,11 @@ void cgit_print_pageheader(void)
997 if (ctx.repo->max_stats) 997 if (ctx.repo->max_stats)
998 cgit_stats_link("stats", NULL, hc("stats"), 998 cgit_stats_link("stats", NULL, hc("stats"),
999 ctx.qry.head, ctx.qry.vpath); 999 ctx.qry.head, ctx.qry.vpath);
1000 if (ctx.repo->homepage) {
1001 html("<a href='");
1002 html_attr(ctx.repo->homepage);
1003 html("' target='_blank'>homepage</a>");
1004 }
1000 html("</td><td class='form'>"); 1005 html("</td><td class='form'>");
1001 html("<form class='right' method='get' action='"); 1006 html("<form class='right' method='get' action='");
1002 if (ctx.cfg.virtual_root) { 1007 if (ctx.cfg.virtual_root) {