about summary refs log tree commit diff
path: root/third_party/cgit/ui-shared.c
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-04-19T15·46+0100
committerVincent Ambo <tazjin@google.com>2020-04-19T19·25+0000
commitf1136cde16d2ab9d8c87e615d0dfdbe7e22adab7 (patch)
treeabd1283487d1ccf35dadf8bcace84f28712584e4 /third_party/cgit/ui-shared.c
parent590e1e1048bb8c56ed397911f500d184191b0214 (diff)
fix(third_party/cgit): Correctly make "about links" on about page r/633
Diffstat (limited to 'third_party/cgit/ui-shared.c')
-rw-r--r--third_party/cgit/ui-shared.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/third_party/cgit/ui-shared.c b/third_party/cgit/ui-shared.c
index f204220196fc..af2176719902 100644
--- a/third_party/cgit/ui-shared.c
+++ b/third_party/cgit/ui-shared.c
@@ -515,6 +515,10 @@ static void cgit_self_link(char *name, const char *title, const char *class)
 	if (!strcmp(ctx.qry.page, "repolist"))
 		cgit_index_link(name, title, class, ctx.qry.search, ctx.qry.sort,
 				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"))
 		cgit_summary_link(name, title, class, ctx.qry.head);
 	else if (!strcmp(ctx.qry.page, "tag"))