]> granicus.if.org Git - cgit/commitdiff
Change S/L/T to summary/log/tree
authorLars Hjemli <hjemli@gmail.com>
Mon, 18 Jun 2007 20:12:09 +0000 (22:12 +0200)
committerLars Hjemli <hjemli@gmail.com>
Mon, 18 Jun 2007 20:14:17 +0000 (22:14 +0200)
In yet another attempt at better usability, the cryptic S/L/T links are
changed to show their full name.

Suggested-by: Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
cgit.css
ui-repolist.c
ui-tree.c

index 9c79c320e9d9aa16c420ad2bef57e7be9461b23d..112dac1a0d4285e07bb77c5bace83293e07374f7 100644 (file)
--- a/cgit.css
+++ b/cgit.css
@@ -371,16 +371,17 @@ table.list td.repogroup {
 
 a.button {
        font-size: 80%;
-       color: #333;
-       background-color: #ccc;
-       border: solid 1px #999;
+       color: #aaa;
+       background-color: #eee;
+       border: solid 1px #aaa;
        padding: 0em 0.5em;
        margin: 0.1em 0.25em;
 }
 
 a.button:hover {
        text-decoration: none;
-       background-color: #eee;
+       color: #333;
+       background-color: #ccc;
 }
 
 a.primary {
index d5c77ea6f011611a3a1a3bd68f319f7743aa0403..4f820a87f3e0075ae10aac3e0c07bc0e2f4bdfd6 100644 (file)
@@ -87,10 +87,10 @@ void cgit_print_repolist(struct cacheitem *item)
                print_modtime(cgit_repo);
                html("</td><td>");
                html_link_open(cgit_repourl(cgit_repo->url),
-                              "Summary", "button");
-               html("S</a>");
-               cgit_log_link("L", "Log", "button", NULL, NULL, NULL);
-               cgit_tree_link("T", "Tree", "button", NULL, NULL, NULL);
+                              NULL, "button");
+               html("summary</a>");
+               cgit_log_link("log", NULL, "button", NULL, NULL, NULL);
+               cgit_tree_link("tree", NULL, "button", NULL, NULL, NULL);
                html("</td></tr>\n");
        }
        html("</table>");
index 1037c823a3fc0f3034066603f79307d6a87aa594..b6cb81336a12d7939a260a8231ef5b09b1c96bee 100644 (file)
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -92,7 +92,7 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen,
        htmlf("</td><td class='ls-size'>%li</td>", size);
 
        html("<td>");
-       cgit_log_link("L", "Log", "button", cgit_query_head, curr_rev,
+       cgit_log_link("log", NULL, "button", cgit_query_head, curr_rev,
                      fullpath);
        html("</td></tr>\n");
        free(name);