fix(third_party/cgit): Correctly make "about links" on about page

This commit is contained in:
Vincent Ambo 2020-04-19 16:46:07 +01:00
parent 590e1e1048
commit f1136cde16

View file

@ -515,6 +515,10 @@ static void cgit_self_link(char *name, const char *title, const char *class)
if (!strcmp(ctx.qry.page, "repolist")) if (!strcmp(ctx.qry.page, "repolist"))
cgit_index_link(name, title, class, ctx.qry.search, ctx.qry.sort, cgit_index_link(name, title, class, ctx.qry.search, ctx.qry.sort,
ctx.qry.ofs, 1); ctx.qry.ofs, 1);
else if (!strcmp(ctx.qry.page, "about"))
cgit_about_link(name, title, class, ctx.qry.head,
ctx.qry.has_sha1 ? ctx.qry.sha1 : NULL,
ctx.qry.path);
else if (!strcmp(ctx.qry.page, "summary")) else if (!strcmp(ctx.qry.page, "summary"))
cgit_summary_link(name, title, class, ctx.qry.head); cgit_summary_link(name, title, class, ctx.qry.head);
else if (!strcmp(ctx.qry.page, "tag")) else if (!strcmp(ctx.qry.page, "tag"))