Commit afffc3e772a7b0c9d729f330ef2c9900c4343b63

Parents: fd20a5475e33d5b7198cc22b6a5a6940c4a1ac90

From: Chris Mayo <aklhfex@gmail.com>
Date: Fri Mar 15 20:17:05 2019 +0700

ui-repolist,ui-shared: remove redundant title on repo anchors
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>

Stats

ui-repolist.c +1/-1
ui-shared.c +1/-1

Changeset

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/ui-repolist.c b/ui-repolist.c
index 529a2038baa21617d52d742894b3a06120378dd7..d12e3dd3593fda4179740c4540aee02260f47007 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -321,7 +321,7 @@ 			last_section = section;
 		}
 		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);
diff --git a/ui-shared.c b/ui-shared.c
index acd8ab550d837b7928138808f572e282abda8468..f880c4e52498b21ccc2b0e71137ef6ea8dc610ec 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -995,7 +995,7 @@ 	html("<td class='main'>");
 	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");