mirror of
https://git.zx2c4.com/cgit
synced 2025-08-03 01:25:34 +02:00
ui-shared: add homepage to tabs
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
75298209bf
commit
5f2664f13c
7 changed files with 26 additions and 5 deletions
|
@ -997,6 +997,11 @@ 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("' target='_blank'>homepage</a>");
|
||||
}
|
||||
html("</td><td class='form'>");
|
||||
html("<form class='right' method='get' action='");
|
||||
if (ctx.cfg.virtual_root) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue