diff options
author | Lars Hjemli <hjemli@gmail.com> | 2007-06-16 20:20:42 +0200 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-06-16 20:20:42 +0200 |
commit | ffc69736a606fd8f9a10468cce48b9a37b428944 (patch) | |
tree | b080c702391244a525fa0e7c97758f7f7fa0c383 /cgit.c | |
parent | 849f0f0f02f858e21fbe59295846e51628f82915 (diff) | |
download | cgit-ffc69736a606fd8f9a10468cce48b9a37b428944.tar.gz cgit-ffc69736a606fd8f9a10468cce48b9a37b428944.tar.bz2 cgit-ffc69736a606fd8f9a10468cce48b9a37b428944.zip |
ui-tree: unify with ui-view, use path to select tree/blob
This teaches ui-tree to show both trees and blobs, thereby making ui-view
superfluous. At the same time, ui-tree is extended to honour the specified
path instead of requiering a tree/blob sha1.
Diffstat (limited to '')
-rw-r--r-- | cgit.c | 5 | ||||
-rw-r--r-- | cgit.css | 16 |
2 files changed, 15 insertions, 6 deletions
@@ -97,14 +97,11 @@ static void cgit_print_repo_page(struct cacheitem *item) cgit_query_path, 1); break; case CMD_TREE: - cgit_print_tree(cgit_query_head, cgit_query_sha1, cgit_query_path); + cgit_print_tree(cgit_query_sha1, cgit_query_path); break; case CMD_COMMIT: cgit_print_commit(cgit_query_head); break; - case CMD_VIEW: - cgit_print_view(cgit_query_sha1, cgit_query_path); - break; case CMD_DIFF: cgit_print_diff(cgit_query_head, cgit_query_sha1, cgit_query_sha2, cgit_query_path); @@ -199,10 +199,22 @@ td.filemode { font-family: monospace; } -td.blob { +table.blob { + margin-top: 0.5em; + border-top: solid 1px black; +} + +table.blob td.no { + border-right: solid 1px black; + color: black; + background-color: #eee; + text-align: right; +} + +table.blob td.txt { white-space: pre; font-family: monospace; - background-color: white; + padding-left: 0.5em; } table.nowrap td { |