summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.css6
-rw-r--r--ui-summary.c2
-rw-r--r--ui-view.c10
3 files changed, 13 insertions, 5 deletions
diff --git a/cgit.css b/cgit.css
index c16f3f2..97b4e27 100644
--- a/cgit.css
+++ b/cgit.css
@@ -72 +72,7 @@ th.filemode, td.filemode {
72} 72}
73
74td.blob {
75 white-space: pre;
76 font-family: courier;
77 font-size: 100%;
78} \ No newline at end of file
diff --git a/ui-summary.c b/ui-summary.c
index 29baa74..46814dd 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -48,3 +48,3 @@ static void cgit_print_branches()
48 html("<table class='list'>"); 48 html("<table class='list'>");
49 html("<tr><th>Branch name</th><th>Latest</th><th>Link</th></tr>\n"); 49 html("<tr><th>Branch</th><th>Last commit</th><th>Link</th></tr>\n");
50 for_each_branch_ref(cgit_print_branch_cb, NULL); 50 for_each_branch_ref(cgit_print_branch_cb, NULL);
diff --git a/ui-view.c b/ui-view.c
index 1bf8472..9d13be1 100644
--- a/ui-view.c
+++ b/ui-view.c
@@ -34,7 +34,9 @@ void cgit_print_view(char *hex)
34 buf[size] = '\0'; 34 buf[size] = '\0';
35 html("<h2>Object view</h2>"); 35 html("<h2>Object content</h2>\n");
36 htmlf("sha1=%s<br/>type=%s<br/>size=%i<br/>", hex, type, size); 36 html("<table class='list'>\n");
37 html("<pre>"); 37 htmlf("<tr><th>%s %s, %li bytes</th></tr>\n", type, hex, size);
38 html("<tr><td class='blob'>\n");
38 html_txt(buf); 39 html_txt(buf);
39 html("</pre>"); 40 html("\n</td></tr>\n");
41 html("</table>\n");
40} 42}