diff options
author | Lars Hjemli <hjemli@gmail.com> | 2007-06-19 05:12:09 (JST) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-06-19 05:14:17 (JST) |
commit | a215bf4620113fcefb8dd3442bf3501bd648c463 (patch) | |
tree | 22e156c5b67605d7174c73efcd132696b335e8a0 | |
parent | 1f34fb9d4f0bf82706ed8912c37a4b320a14813b (diff) | |
download | cgit-a215bf4620113fcefb8dd3442bf3501bd648c463.zip cgit-a215bf4620113fcefb8dd3442bf3501bd648c463.tar.gz |
Change S/L/T to summary/log/tree
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>
-rw-r--r-- | cgit.css | 9 | ||||
-rw-r--r-- | ui-repolist.c | 8 | ||||
-rw-r--r-- | ui-tree.c | 2 |
3 files changed, 10 insertions, 9 deletions
@@ -371,16 +371,17 @@ table.list td.repogroup { | |||
371 | 371 | ||
372 | a.button { | 372 | a.button { |
373 | font-size: 80%; | 373 | font-size: 80%; |
374 | color: #333; | 374 | color: #aaa; |
375 | background-color: #ccc; | 375 | background-color: #eee; |
376 | border: solid 1px #999; | 376 | border: solid 1px #aaa; |
377 | padding: 0em 0.5em; | 377 | padding: 0em 0.5em; |
378 | margin: 0.1em 0.25em; | 378 | margin: 0.1em 0.25em; |
379 | } | 379 | } |
380 | 380 | ||
381 | a.button:hover { | 381 | a.button:hover { |
382 | text-decoration: none; | 382 | text-decoration: none; |
383 | background-color: #eee; | 383 | color: #333; |
384 | background-color: #ccc; | ||
384 | } | 385 | } |
385 | 386 | ||
386 | a.primary { | 387 | a.primary { |
diff --git a/ui-repolist.c b/ui-repolist.c index d5c77ea..4f820a8 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
@@ -87,10 +87,10 @@ void cgit_print_repolist(struct cacheitem *item) | |||
87 | print_modtime(cgit_repo); | 87 | print_modtime(cgit_repo); |
88 | html("</td><td>"); | 88 | html("</td><td>"); |
89 | html_link_open(cgit_repourl(cgit_repo->url), | 89 | html_link_open(cgit_repourl(cgit_repo->url), |
90 | "Summary", "button"); | 90 | NULL, "button"); |
91 | html("S</a>"); | 91 | html("summary</a>"); |
92 | cgit_log_link("L", "Log", "button", NULL, NULL, NULL); | 92 | cgit_log_link("log", NULL, "button", NULL, NULL, NULL); |
93 | cgit_tree_link("T", "Tree", "button", NULL, NULL, NULL); | 93 | cgit_tree_link("tree", NULL, "button", NULL, NULL, NULL); |
94 | html("</td></tr>\n"); | 94 | html("</td></tr>\n"); |
95 | } | 95 | } |
96 | html("</table>"); | 96 | html("</table>"); |
@@ -92,7 +92,7 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, | |||
92 | htmlf("</td><td class='ls-size'>%li</td>", size); | 92 | htmlf("</td><td class='ls-size'>%li</td>", size); |
93 | 93 | ||
94 | html("<td>"); | 94 | html("<td>"); |
95 | cgit_log_link("L", "Log", "button", cgit_query_head, curr_rev, | 95 | cgit_log_link("log", NULL, "button", cgit_query_head, curr_rev, |
96 | fullpath); | 96 | fullpath); |
97 | html("</td></tr>\n"); | 97 | html("</td></tr>\n"); |
98 | free(name); | 98 | free(name); |