about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-06-09 17:54:44 -0500
committerCase Duckworth2022-06-09 17:54:44 -0500
commitfe7ffd0d0902606d46e7a91eacf633dbece0cca0 (patch)
treef95bbd905e6f9acbdcf8bfb2c5380cc3e079ad9d
parentUpdate cgitrc (diff)
parentUn-fuck the patch (diff)
downloadcgit-fe7ffd0d0902606d46e7a91eacf633dbece0cca0.tar.gz
cgit-fe7ffd0d0902606d46e7a91eacf633dbece0cca0.zip
Merge branch 'master' into configured
-rw-r--r--ui-repolist.c2
-rw-r--r--ui-shared.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index 97b11c5..03f513c 100644 --- a/ui-repolist.c +++ b/ui-repolist.c
@@ -321,7 +321,7 @@ void cgit_print_repolist(void)
321 } 321 }
322 htmlf("<tr><td class='%s'>", 322 htmlf("<tr><td class='%s'>",
323 !sorted && section ? "sublevel-repo" : "toplevel-repo"); 323 !sorted && section ? "sublevel-repo" : "toplevel-repo");
324 cgit_summary_link(ctx.repo->name, NULL, NULL, NULL); 324 cgit_repo_link(ctx.repo->name, ctx.repo->name, NULL, NULL);
325 html("</td><td>"); 325 html("</td><td>");
326 repourl = cgit_repourl(ctx.repo->url); 326 repourl = cgit_repourl(ctx.repo->url);
327 html_link_open(repourl, NULL, NULL); 327 html_link_open(repourl, NULL, NULL);
diff --git a/ui-shared.c b/ui-shared.c index 0b7937c..0bbe39b 100644 --- a/ui-shared.c +++ b/ui-shared.c
@@ -345,7 +345,6 @@ void cgit_repo_link(const char *name, const char *title, const char *class,
345 reporevlink(NULL, name, title, class, head, NULL, NULL); 345 reporevlink(NULL, name, title, class, head, NULL, NULL);
346} 346}
347 347
348
349void cgit_summary_link(const char *name, const char *title, const char *class, 348void cgit_summary_link(const char *name, const char *title, const char *class,
350 const char *head) 349 const char *head)
351{ 350{
@@ -1022,7 +1021,7 @@ static void print_header(void)
1022 if (ctx.repo) { 1021 if (ctx.repo) {
1023 cgit_index_link("index", NULL, NULL, NULL, NULL, 0, 1); 1022 cgit_index_link("index", NULL, NULL, NULL, NULL, 0, 1);
1024 html(" : "); 1023 html(" : ");
1025 cgit_summary_link(ctx.repo->name, NULL, NULL, NULL); 1024 cgit_repo_link(ctx.repo->name, ctx.repo->name, NULL, NULL);
1026 if (ctx.env.authenticated) { 1025 if (ctx.env.authenticated) {
1027 html("</td><td class='form'>"); 1026 html("</td><td class='form'>");
1028 html("<form method='get'>\n"); 1027 html("<form method='get'>\n");