Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 5 insertions, 5 deletions
-rw-r--r--ui-shared.c10
diff --git a/ui-shared.c b/ui-shared.c
index 9ef7980..f6588f3 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -1096,6 +1096,11 @@ void cgit_print_pageheader(void)
html("<table class='tabs'><tr><td>\n");
if (ctx.env.authenticated && ctx.repo) {
+ if (ctx.repo->homepage) {
+ html("<a class='homepage' href='");
+ html_attr(ctx.repo->homepage);
+ html("'>Website</a> ");
+ }
cgit_summary_link("Summary", NULL, hc("summary"),
ctx.qry.head);
html(" ");
@@ -1122,11 +1127,6 @@ void cgit_print_pageheader(void)
if (ctx.repo->max_stats)
cgit_stats_link("@stats", NULL, hc("stats"),
ctx.qry.head, ctx.qry.vpath);
- if (ctx.repo->homepage) {
- html("<a href='");
- html_attr(ctx.repo->homepage);
- html("'>homepage</a>");
- }
html("</td><td class='form'>");
html("<form class='right' method='get' action='");
if (ctx.cfg.virtual_root) {