diff options
Diffstat (limited to 'ui-tree.c')
-rw-r--r-- | ui-tree.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -21,13 +21,13 @@ static void print_text_buffer(const char *name, char *buf, unsigned long size) const char *numberfmt = "<a class='no' id='n%1$d' name='n%1$d' href='#n%1$d'>%1$d</a>\n"; - html("<table summary='blob content' class='blob'>\n"); + html("<table summary='blob content' class='table blob'>\n"); if (ctx.cfg.enable_tree_linenumbers) { - html("<tr><td class='linenumbers'><pre>"); + html("<tr><td class='linenumbers span1'><pre>"); idx = 0; lineno = 0; - + if (size) { htmlf(numberfmt, ++lineno); while(idx < size - 1) { // skip absolute last newline @@ -43,20 +43,20 @@ static void print_text_buffer(const char *name, char *buf, unsigned long size) } if (ctx.repo->source_filter) { - html("<td class='lines'><pre><code>"); + html("<td class='lines span11'><pre>"); ctx.repo->source_filter->argv[1] = xstrdup(name); cgit_open_filter(ctx.repo->source_filter); html_raw(buf, size); cgit_close_filter(ctx.repo->source_filter); free(ctx.repo->source_filter->argv[1]); ctx.repo->source_filter->argv[1] = NULL; - html("</code></pre></td></tr></table>\n"); + html("</pre></td></tr></table>\n"); return; } - html("<td class='lines'><pre><code>"); + html("<td class='lines span11'><pre>"); html_txt(buf); - html("</code></pre></td></tr></table>\n"); + html("</pre></td></tr></table>\n"); } #define ROWLEN 32 @@ -181,12 +181,12 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, static void ls_head() { - html("<table summary='tree listing' class='list'>\n"); + html("<table summary='tree listing' class='table table-striped table-condensed'>\n"); html("<tr class='nohover'>"); - html("<th class='left'>Mode</th>"); - html("<th class='left'>Name</th>"); - html("<th class='right'>Size</th>"); - html("<th/>"); + html("<th class='span2'>Mode</th>"); + html("<th class='span8'>Name</th>"); + html("<th class='span1 right'>Size</th>"); + html("<th class='span2' />"); html("</tr>\n"); header = 1; } |