Cleanup table listings Make the output for <table class='list'> a bit nicer Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net>
Lars Hjemli larsh@slaptop.hjemli.net
Sun, 28 Jan 2007 00:39:26 +0100
6 files changed,
9 insertions(+),
13 deletions(-)
M
cgit.css
→
cgit.css
@@ -23,24 +23,21 @@ text-decoration: underline;
} table.list { - border: solid 1px black; + border: none; border-collapse: collapse; - border: solid 1px #aaa; } table.list tr { background: white; } table.list tr:hover { - background: #eeb; + background: #eee; } table.list tr.nohover:hover { background: white; } table.list th { font-weight: normal; - background: #ddd; - border-top: solid 1px #aaa; - border-bottom: solid 1px #aaa; + border-bottom: solid 1px #777; padding: 0.1em 0.5em 0.1em 0.5em; vertical-align: baseline; }@@ -51,7 +48,6 @@ }
img { border: none; } - div#header { background-color: #ddd;
M
ui-repolist.c
→
ui-repolist.c
@@ -28,7 +28,7 @@ }
html("<h2>Repositories</h2>\n"); html("<table class='list nowrap'>"); - html("<tr>" + html("<tr class='nohover'>" "<th class='left'>Name</th>" "<th class='left'>Description</th>" "<th class='left'>Owner</th></tr>\n");
M
ui-summary.c
→
ui-summary.c
@@ -96,7 +96,7 @@ }
static void cgit_print_branches() { - html("<tr><th class='left'>Branch</th>" + html("<tr class='nohover'><th class='left'>Branch</th>" "<th class='left'>Updated</th>" "<th class='left'>Author</th>" "<th class='left'>Head commit</th></tr>\n");@@ -105,7 +105,7 @@ }
static void cgit_print_tags() { - html("<tr><th class='left'>Tag</th>" + html("<tr class='nohover'><th class='left'>Tag</th>" "<th class='left'>Created</th>" "<th class='left'>Author</th>" "<th class='left'>Reference</th></tr>\n");
M
ui-view.c
→
ui-view.c
@@ -34,7 +34,7 @@
buf[size] = '\0'; html("<h2>Object content</h2>\n"); html("<table class='list'>\n"); - htmlf("<tr><th>%s %s, %li bytes</th></tr>\n", type, hex, size); + htmlf("<tr class='nohover'><th class='left'>%s %s, %li bytes</th></tr>\n", type, hex, size); html("<tr><td class='blob'>\n"); html_txt(buf); html("\n</td></tr>\n");