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>
This commit is contained in:
Lars Hjemli 2007-06-18 22:12:09 +02:00
parent 1f34fb9d4f
commit a215bf4620
3 changed files with 10 additions and 9 deletions

View File

@ -371,16 +371,17 @@ table.list td.repogroup {
a.button { a.button {
font-size: 80%; font-size: 80%;
color: #333; color: #aaa;
background-color: #ccc; background-color: #eee;
border: solid 1px #999; border: solid 1px #aaa;
padding: 0em 0.5em; padding: 0em 0.5em;
margin: 0.1em 0.25em; margin: 0.1em 0.25em;
} }
a.button:hover { a.button:hover {
text-decoration: none; text-decoration: none;
background-color: #eee; color: #333;
background-color: #ccc;
} }
a.primary { a.primary {

View File

@ -87,10 +87,10 @@ void cgit_print_repolist(struct cacheitem *item)
print_modtime(cgit_repo); print_modtime(cgit_repo);
html("</td><td>"); html("</td><td>");
html_link_open(cgit_repourl(cgit_repo->url), html_link_open(cgit_repourl(cgit_repo->url),
"Summary", "button"); NULL, "button");
html("S</a>"); html("summary</a>");
cgit_log_link("L", "Log", "button", NULL, NULL, NULL); cgit_log_link("log", NULL, "button", NULL, NULL, NULL);
cgit_tree_link("T", "Tree", "button", NULL, NULL, NULL); cgit_tree_link("tree", NULL, "button", NULL, NULL, NULL);
html("</td></tr>\n"); html("</td></tr>\n");
} }
html("</table>"); html("</table>");

View File

@ -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); htmlf("</td><td class='ls-size'>%li</td>", size);
html("<td>"); 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); fullpath);
html("</td></tr>\n"); html("</td></tr>\n");
free(name); free(name);