summaryrefslogtreecommitdiffabout
path: root/ui-tree.c
Unidiff
Diffstat (limited to 'ui-tree.c') (more/less context) (show whitespace changes)
-rw-r--r--ui-tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui-tree.c b/ui-tree.c
index 2a8625c..c26ba4c 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -101,24 +101,27 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen,
101 } else if (S_ISDIR(mode)) { 101 } else if (S_ISDIR(mode)) {
102 cgit_tree_link(name, NULL, "ls-dir", ctx.qry.head, 102 cgit_tree_link(name, NULL, "ls-dir", ctx.qry.head,
103 curr_rev, fullpath); 103 curr_rev, fullpath);
104 } else { 104 } else {
105 cgit_tree_link(name, NULL, "ls-blob", ctx.qry.head, 105 cgit_tree_link(name, NULL, "ls-blob", ctx.qry.head,
106 curr_rev, fullpath); 106 curr_rev, fullpath);
107 } 107 }
108 htmlf("</td><td class='ls-size'>%li</td>", size); 108 htmlf("</td><td class='ls-size'>%li</td>", size);
109 109
110 html("<td>"); 110 html("<td>");
111 cgit_log_link("log", NULL, "button", ctx.qry.head, curr_rev, 111 cgit_log_link("log", NULL, "button", ctx.qry.head, curr_rev,
112 fullpath, 0, NULL, NULL, ctx.qry.showmsg); 112 fullpath, 0, NULL, NULL, ctx.qry.showmsg);
113 if (ctx.repo->max_stats)
114 cgit_stats_link("stats", NULL, "button", ctx.qry.head,
115 fullpath);
113 html("</td></tr>\n"); 116 html("</td></tr>\n");
114 free(name); 117 free(name);
115 return 0; 118 return 0;
116} 119}
117 120
118static void ls_head() 121static void ls_head()
119{ 122{
120 html("<table summary='tree listing' class='list'>\n"); 123 html("<table summary='tree listing' class='list'>\n");
121 html("<tr class='nohover'>"); 124 html("<tr class='nohover'>");
122 html("<th class='left'>Mode</th>"); 125 html("<th class='left'>Mode</th>");
123 html("<th class='left'>Name</th>"); 126 html("<th class='left'>Name</th>");
124 html("<th class='right'>Size</th>"); 127 html("<th class='right'>Size</th>");