summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
447025f)
Make the output for <table class='list'> a bit nicer
Signed-off-by: Lars Hjemli <larsh@slaptop.hjemli.net>
- border: solid 1px black;
border-collapse: collapse;
border-collapse: collapse;
- border: solid 1px #aaa;
}
table.list tr {
background: white;
}
table.list tr:hover {
}
table.list tr {
background: white;
}
table.list tr:hover {
}
table.list tr.nohover:hover {
background: white;
}
table.list th {
font-weight: normal;
}
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;
}
padding: 0.1em 0.5em 0.1em 0.5em;
vertical-align: baseline;
}
div#header {
background-color: #ddd;
padding: 0.25em 0.25em 0.25em 0.5em;
div#header {
background-color: #ddd;
padding: 0.25em 0.25em 0.25em 0.5em;
html("<h2>Log</h2>");
html("<table class='list nowrap'>");
html("<h2>Log</h2>");
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'>Author</th></tr>\n");
"<th class='left'>Message</th>"
"<th class='left'>Author</th></tr>\n");
html("<h2>Repositories</h2>\n");
html("<table class='list nowrap'>");
html("<h2>Repositories</h2>\n");
html("<table class='list nowrap'>");
+ html("<tr class='nohover'>"
"<th class='left'>Name</th>"
"<th class='left'>Description</th>"
"<th class='left'>Owner</th></tr>\n");
"<th class='left'>Name</th>"
"<th class='left'>Description</th>"
"<th class='left'>Owner</th></tr>\n");
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'>Author</th>"
"<th class='left'>Head commit</th></tr>\n");
"<th class='left'>Updated</th>"
"<th class='left'>Author</th>"
"<th class='left'>Head commit</th></tr>\n");
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'>Author</th>"
"<th class='left'>Reference</th></tr>\n");
"<th class='left'>Created</th>"
"<th class='left'>Author</th>"
"<th class='left'>Reference</th></tr>\n");
html("<h2>Tree content</h2>\n");
html_txt(path);
html("<table class='list'>\n");
html("<h2>Tree content</h2>\n");
html_txt(path);
html("<table class='list'>\n");
+ html("<tr class='nohover'>");
html("<th class='left'>Mode</th>");
html("<th class='left'>Name</th>");
html("<th class='right'>Size</th>");
html("<th class='left'>Mode</th>");
html("<th class='left'>Name</th>");
html("<th class='right'>Size</th>");
buf[size] = '\0';
html("<h2>Object content</h2>\n");
html("<table class='list'>\n");
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");
html("<tr><td class='blob'>\n");
html_txt(buf);
html("\n</td></tr>\n");