diff options
author | Lars Hjemli <hjemli@gmail.com> | 2006-12-16 00:19:56 +0100 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2006-12-16 00:19:56 +0100 |
commit | 9a8f88658d51aeb86a79ac1121de13562ad2601f (patch) | |
tree | 8724d9477efe887e0b851b567e74554e75761cc7 /cgit.c | |
parent | Add a common commit parser (diff) | |
download | cgit-pink-9a8f88658d51aeb86a79ac1121de13562ad2601f.tar.gz cgit-pink-9a8f88658d51aeb86a79ac1121de13562ad2601f.zip |
Add ui-commit.c + misc ui cleanups
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | cgit.c | 2 | ||||
-rw-r--r-- | cgit.css | 50 |
2 files changed, 48 insertions, 4 deletions
diff --git a/cgit.c b/cgit.c index d7e586d..37cdb83 100644 --- a/cgit.c +++ b/cgit.c @@ -32,6 +32,8 @@ static void cgit_print_repo_page(struct cacheitem *item) cgit_print_log(cgit_query_head, cgit_query_ofs, 100); } else if (!strcmp(cgit_query_page, "tree")) { cgit_print_tree(cgit_query_sha1); + } else if (!strcmp(cgit_query_page, "commit")) { + cgit_print_commit(cgit_query_sha1); } else if (!strcmp(cgit_query_page, "view")) { cgit_print_view(cgit_query_sha1); } diff --git a/cgit.css b/cgit.css index 97b4e27..3579598 100644 --- a/cgit.css +++ b/cgit.css @@ -21,16 +21,15 @@ table.list { } table.list th { - text-align: left; font-weight: bold; background: #ddd; border-bottom: solid 1px #aaa; - padding: 0.1em 0.5em 0.1em; + padding: 0.1em 0.5em 0.1em 0.5em; vertical-align: baseline; } table.list td { border: none; - padding: 0.1em 1em 0.1em 0.5em; + padding: 0.1em 0.5em 0.1em 0.5em; background: white; } @@ -56,6 +55,10 @@ div#content { margin: 0.5em 0.5em; } +div#blob { + border: solid 1px black; +} + div.error { color: red; font-weight: bold; @@ -75,4 +78,43 @@ td.blob { white-space: pre; font-family: courier; font-size: 100%; -} \ No newline at end of file +} + +table.log td { + white-space: nowrap; +} + +table.commit-info { + border-collapse: collapse; + margin-top: 1em; + +} +table.commit-info th { + text-align: left; + font-weight: normal; + padding: 0.1em 1em 0.1em 0.1em; +} +table.commit-info td { + font-weight: normal; + padding: 0.1em 1em 0.1em 0.1em; +} +div.commit-subject { + font-weight: bold; + font-size: 110%; + margin: 1em 0em 1em; +} +div.commit-msg { + white-space: pre; + font-family: courier; + font-size: 100%; +} +.sha1 { + font-family: courier; + font-size: 90%; +} +.left { + text-align: left; +} +.right { + text-align: right; +} |