Cleanup table listings

Make the output for <table class='list'> a bit nicer

Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net>
This commit is contained in:
Lars Hjemli 2007-01-28 00:39:26 +01:00 committed by Lars Hjemli
szülő 447025f62c
commit 777faf7e50
6 fájl változott, egészen pontosan 9 új sor hozzáadva és 13 régi sor törölve

Fájl megtekintése

@ -23,24 +23,21 @@ a:hover {
} }
table.list { table.list {
border: solid 1px black; border: none;
border-collapse: collapse; border-collapse: collapse;
border: solid 1px #aaa;
} }
table.list tr { table.list tr {
background: white; background: white;
} }
table.list tr:hover { table.list tr:hover {
background: #eeb; background: #eee;
} }
table.list tr.nohover:hover { table.list tr.nohover:hover {
background: white; background: white;
} }
table.list th { table.list th {
font-weight: normal; font-weight: normal;
background: #ddd; border-bottom: solid 1px #777;
border-top: solid 1px #aaa;
border-bottom: solid 1px #aaa;
padding: 0.1em 0.5em 0.1em 0.5em; padding: 0.1em 0.5em 0.1em 0.5em;
vertical-align: baseline; vertical-align: baseline;
} }
@ -52,7 +49,6 @@ img {
border: none; border: none;
} }
div#header { div#header {
background-color: #ddd; background-color: #ddd;
padding: 0.25em 0.25em 0.25em 0.5em; padding: 0.25em 0.25em 0.25em 0.5em;

Fájl megtekintése

@ -56,7 +56,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep)
html("<h2>Log</h2>"); html("<h2>Log</h2>");
html("<table class='list nowrap'>"); html("<table class='list nowrap'>");
html("<tr><th class='left'>Date</th>" html("<tr class='nohover'><th class='left'>Date</th>"
"<th class='left'>Message</th>" "<th class='left'>Message</th>"
"<th class='left'>Author</th></tr>\n"); "<th class='left'>Author</th></tr>\n");

Fájl megtekintése

@ -28,7 +28,7 @@ void cgit_print_repolist(struct cacheitem *item)
html("<h2>Repositories</h2>\n"); html("<h2>Repositories</h2>\n");
html("<table class='list nowrap'>"); html("<table class='list nowrap'>");
html("<tr>" html("<tr class='nohover'>"
"<th class='left'>Name</th>" "<th class='left'>Name</th>"
"<th class='left'>Description</th>" "<th class='left'>Description</th>"
"<th class='left'>Owner</th></tr>\n"); "<th class='left'>Owner</th></tr>\n");

Fájl megtekintése

@ -96,7 +96,7 @@ static int cgit_print_tag_cb(const char *refname, const unsigned char *sha1,
static void cgit_print_branches() 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'>Updated</th>"
"<th class='left'>Author</th>" "<th class='left'>Author</th>"
"<th class='left'>Head commit</th></tr>\n"); "<th class='left'>Head commit</th></tr>\n");
@ -105,7 +105,7 @@ static void cgit_print_branches()
static void cgit_print_tags() 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'>Created</th>"
"<th class='left'>Author</th>" "<th class='left'>Author</th>"
"<th class='left'>Reference</th></tr>\n"); "<th class='left'>Reference</th></tr>\n");

Fájl megtekintése

@ -69,7 +69,7 @@ void cgit_print_tree(const char *hex, char *path)
html("<h2>Tree content</h2>\n"); html("<h2>Tree content</h2>\n");
html_txt(path); html_txt(path);
html("<table class='list'>\n"); html("<table class='list'>\n");
html("<tr>"); html("<tr class='nohover'>");
html("<th class='left'>Mode</th>"); html("<th class='left'>Mode</th>");
html("<th class='left'>Name</th>"); html("<th class='left'>Name</th>");
html("<th class='right'>Size</th>"); html("<th class='right'>Size</th>");

Fájl megtekintése

@ -34,7 +34,7 @@ void cgit_print_view(const char *hex)
buf[size] = '\0'; buf[size] = '\0';
html("<h2>Object content</h2>\n"); html("<h2>Object content</h2>\n");
html("<table class='list'>\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("<tr><td class='blob'>\n");
html_txt(buf); html_txt(buf);
html("\n</td></tr>\n"); html("\n</td></tr>\n");