]> granicus.if.org Git - cgit/commitdiff
ui-repolist,ui-shared: remove redundant title on repo anchors
authorChris Mayo <aklhfex@gmail.com>
Fri, 15 Mar 2019 20:17:05 +0000 (20:17 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 19 Dec 2022 15:13:24 +0000 (16:13 +0100)
The title attribute was being set to the same value as the anchor
element text.

Signed-off-by: Chris Mayo <aklhfex@gmail.com>
Reviewed-by: Eric Wong <e@80x24.org>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
ui-repolist.c
ui-shared.c

index 529a2038baa21617d52d742894b3a06120378dd7..d12e3dd3593fda4179740c4540aee02260f47007 100644 (file)
@@ -321,7 +321,7 @@ void cgit_print_repolist(void)
                }
                htmlf("<tr><td class='%s'>",
                      !sorted && section ? "sublevel-repo" : "toplevel-repo");
-               cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL);
+               cgit_summary_link(ctx.repo->name, NULL, NULL, NULL);
                html("</td><td>");
                repourl = cgit_repourl(ctx.repo->url);
                html_link_open(repourl, NULL, NULL);
index acd8ab550d837b7928138808f572e282abda8468..f880c4e52498b21ccc2b0e71137ef6ea8dc610ec 100644 (file)
@@ -995,7 +995,7 @@ static void print_header(void)
        if (ctx.repo) {
                cgit_index_link("index", NULL, NULL, NULL, NULL, 0, 1);
                html(" : ");
-               cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL);
+               cgit_summary_link(ctx.repo->name, NULL, NULL, NULL);
                if (ctx.env.authenticated) {
                        html("</td><td class='form'>");
                        html("<form method='get'>\n");