author | Lars Hjemli <hjemli@gmail.com> | 2006-12-15 23:19:56 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2006-12-15 23:19:56 (UTC) |
commit | 9a8f88658d51aeb86a79ac1121de13562ad2601f (patch) (unidiff) | |
tree | 8724d9477efe887e0b851b567e74554e75761cc7 /ui-tree.c | |
parent | 2101e26fd68f816e77de62b93df4c32fd1110d0c (diff) | |
download | cgit-9a8f88658d51aeb86a79ac1121de13562ad2601f.zip cgit-9a8f88658d51aeb86a79ac1121de13562ad2601f.tar.gz cgit-9a8f88658d51aeb86a79ac1121de13562ad2601f.tar.bz2 |
Add ui-commit.c + misc ui cleanups
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | ui-tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -49,22 +49,22 @@ void cgit_print_tree(const char *hex) | |||
49 | { | 49 | { |
50 | struct tree *tree; | 50 | struct tree *tree; |
51 | unsigned char sha1[20]; | 51 | unsigned char sha1[20]; |
52 | 52 | ||
53 | if (get_sha1_hex(hex, sha1)) { | 53 | if (get_sha1_hex(hex, sha1)) { |
54 | cgit_print_error(fmt("Invalid object id: %s", hex)); | 54 | cgit_print_error(fmt("Invalid object id: %s", hex)); |
55 | return; | 55 | return; |
56 | } | 56 | } |
57 | tree = parse_tree_indirect(sha1); | 57 | tree = parse_tree_indirect(sha1); |
58 | if (!tree) { | 58 | if (!tree) { |
59 | cgit_print_error(fmt("Not a tree object: %s", hex)); | 59 | cgit_print_error(fmt("Not a tree object: %s", hex)); |
60 | return; | 60 | return; |
61 | } | 61 | } |
62 | 62 | ||
63 | html("<h2>Tree content</h2>\n"); | 63 | html("<h2>Tree content</h2>\n"); |
64 | html("<table class='list'>\n"); | 64 | html("<table class='list'>\n"); |
65 | html("<tr><th>Name</th>"); | 65 | html("<tr><th class='left'>Name</th>"); |
66 | html("<th class='filesize'>Size</th>"); | 66 | html("<th class='right'>Size</th>"); |
67 | html("<th class='filemode'>Mode</th></tr>\n"); | 67 | html("<th class='right'>Mode</th></tr>\n"); |
68 | read_tree_recursive(tree, "", 0, 1, NULL, print_entry); | 68 | read_tree_recursive(tree, "", 0, 1, NULL, print_entry); |
69 | html("</table>\n"); | 69 | html("</table>\n"); |
70 | } | 70 | } |