about summary refs log tree commit diff stats
path: root/ui-repolist.c
diff options
context:
space:
mode:
authorEric Wong2019-01-04 22:23:24 +0000
committerJune McEnroe2022-02-13 11:55:35 -0500
commit2d4c893dbdfea6a5ccefa75017113d45b33f2c43 (patch)
tree81036c21a04b42d38c59274043fb22e84174bb10 /ui-repolist.c
parentImprove decoration display for browsers without CSS (diff)
downloadcgit-2d4c893dbdfea6a5ccefa75017113d45b33f2c43.tar.gz
cgit-2d4c893dbdfea6a5ccefa75017113d45b33f2c43.zip
Improve button spacing for browsers w/o CSS
For browsers on low-end machines running browsers without CSS
support, the default tree view displayed "logplain" when it
should be "log plain".  Stop relying on CSS and add a space
in between elements to improve accessibility.
Diffstat (limited to 'ui-repolist.c')
-rw-r--r--ui-repolist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index 529a203..591929b 100644 --- a/ui-repolist.c +++ b/ui-repolist.c
@@ -353,8 +353,10 @@ void cgit_print_repolist(void)
353 if (ctx.cfg.enable_index_links) { 353 if (ctx.cfg.enable_index_links) {
354 html("<td>"); 354 html("<td>");
355 cgit_summary_link("summary", NULL, "button", NULL); 355 cgit_summary_link("summary", NULL, "button", NULL);
356 html(" ");
356 cgit_log_link("log", NULL, "button", NULL, NULL, NULL, 357 cgit_log_link("log", NULL, "button", NULL, NULL, NULL,
357 0, NULL, NULL, ctx.qry.showmsg, 0); 358 0, NULL, NULL, ctx.qry.showmsg, 0);
359 html(" ");
358 cgit_tree_link("tree", NULL, "button", NULL, NULL, NULL); 360 cgit_tree_link("tree", NULL, "button", NULL, NULL, NULL);
359 html("</td>"); 361 html("</td>");
360 } 362 }