-rw-r--r-- | cgit.css | 10 | ||||
-rw-r--r-- | ui-log.c | 2 | ||||
-rw-r--r-- | ui-repolist.c | 2 | ||||
-rw-r--r-- | ui-summary.c | 4 | ||||
-rw-r--r-- | ui-tree.c | 2 | ||||
-rw-r--r-- | ui-view.c | 2 |
6 files changed, 9 insertions, 13 deletions
@@ -14,54 +14,50 @@ h2 { } a { color: blue; text-decoration: none; } a:hover { 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; } table.list td { border: none; padding: 0.1em 0.5em 0.1em 0.5em; } img { border: none; } - div#header { background-color: #ddd; padding: 0.25em 0.25em 0.25em 0.5em; font-size: 150%; font-weight: bold; border: solid 1px #aaa; vertical-align: middle; margin-bottom: 2em; } div#header img#logo { float: right; } @@ -47,25 +47,25 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep) rev.commit_format = CMIT_FMT_DEFAULT; rev.verbose_header = 1; rev.show_root_diff = 0; setup_revisions(argc, argv, &rev, NULL); if (rev.grep_filter) { rev.grep_filter->regflags |= REG_ICASE; compile_grep_patterns(rev.grep_filter); } prepare_revision_walk(&rev); 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"); if (ofs<0) ofs = 0; for (i = 0; i < ofs && (commit = get_revision(&rev)) != NULL; i++) { free(commit->buffer); commit->buffer = NULL; free_commit_list(commit->parents); commit->parents = NULL; } diff --git a/ui-repolist.c b/ui-repolist.c index 9f12b18..bd4af59 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -19,25 +19,25 @@ void cgit_print_repolist(struct cacheitem *item) cgit_print_docstart(cgit_root_title, item); cgit_print_pageheader(cgit_root_title, 0); if (!(d = opendir("."))) { cgit_print_error(fmt("Unable to scan repository directory: %s", strerror(errno))); cgit_print_docend(); return; } 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"); while ((de = readdir(d)) != NULL) { if (de->d_name[0] == '.') continue; if (stat(de->d_name, &st) < 0) continue; if (!S_ISDIR(st.st_mode)) continue; cgit_repo_name = cgit_repo_desc = cgit_repo_owner = NULL; diff --git a/ui-summary.c b/ui-summary.c index 1591632..04d4912 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -87,34 +87,34 @@ static int cgit_print_tag_cb(const char *refname, const unsigned char *sha1, } else { html("<tr><td>"); html_txt(buf); html("</td><td colspan='3'>"); htmlf("*** bad ref %s ***", sha1_to_hex(sha1)); html("</td></tr>\n"); } return 0; } 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"); for_each_branch_ref(cgit_print_branch_cb, NULL); } 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"); for_each_tag_ref(cgit_print_tag_cb, NULL); } void cgit_print_summary() { html("<h2>"); html_txt("Repo summary page"); html("</h2>"); html("<table class='list nowrap'>"); @@ -60,20 +60,20 @@ void cgit_print_tree(const char *hex, char *path) cgit_print_error(fmt("Invalid object id: %s", hex)); return; } tree = parse_tree_indirect(sha1); if (!tree) { cgit_print_error(fmt("Not a tree object: %s", hex)); return; } html("<h2>Tree content</h2>\n"); html_txt(path); html("<table class='list'>\n"); - html("<tr>"); + html("<tr class='nohover'>"); html("<th class='left'>Mode</th>"); html("<th class='left'>Name</th>"); html("<th class='right'>Size</th>"); html("</tr>\n"); read_tree_recursive(tree, "", 0, 1, NULL, print_entry); html("</table>\n"); } @@ -25,18 +25,18 @@ void cgit_print_view(const char *hex) return; } buf = read_sha1_file(sha1, type, &size); if (!buf) { cgit_print_error("Error reading object"); return; } 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("</table>\n"); } |