diff options
| Commit | 043152ca6bf882f89bae8d06034ba2711cf07209 (patch) | |
|---|---|---|
| Author | 2026-10-03 21:44:39 +0300 | |
| Committer | 2026-10-04 12:00:00 +0300 | |
| Files | e24a16046504bcf47c683df537d45d68ad7a012e | |
| cgit-043152ca6bf882f89bae8d06034ba2711cf07209.tar cgit-043152ca6bf882f89bae8d06034ba2711cf07209.tar.gz cgit-043152ca6bf882f89bae8d06034ba2711cf07209.zip | ||
| Parent | f064acfd6071241f2dc9a3741d713e97aeb84a6e (diff) | |
ui-shared: (THEME) Move homepage to the beginning, rename to Website
1 files changed, 5 insertions, 5 deletions
| -rw-r--r-- | ui-shared.c | 10 |
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) { |
