summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.css17
-rw-r--r--ui-tree.c18
2 files changed, 12 insertions, 23 deletions
diff --git a/cgit.css b/cgit.css
index 30fde03..cda437e 100644
--- a/cgit.css
+++ b/cgit.css
@@ -176,3 +176,3 @@ div.error {
176 176
177td.ls-blob, td.ls-dir, td.ls-mod { 177a.ls-blob, a.ls-dir, a.ls-mod {
178 font-family: monospace; 178 font-family: monospace;
@@ -180,7 +180,3 @@ td.ls-blob, td.ls-dir, td.ls-mod {
180 180
181div.ls-dir a { 181td.ls-size {
182 font-weight: bold;
183}
184
185th.filesize, td.filesize {
186 text-align: right; 182 text-align: right;
@@ -188,3 +184,3 @@ th.filesize, td.filesize {
188 184
189td.filesize { 185td.ls-size {
190 font-family: monospace; 186 font-family: monospace;
@@ -192,8 +188,3 @@ td.filesize {
192 188
193td.links { 189td.ls-mode {
194 font-size: 80%;
195 padding-left: 2em;
196}
197
198td.filemode {
199 font-family: monospace; 190 font-family: monospace;
diff --git a/ui-tree.c b/ui-tree.c
index 3b82374..d503bee 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -74,7 +74,7 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen,
74 74
75 html("<tr><td class='filemode'>"); 75 html("<tr><td class='ls-mode'>");
76 html_filemode(mode); 76 html_filemode(mode);
77 html("</td><td "); 77 html("</td><td>");
78 if (S_ISDIRLNK(mode)) { 78 if (S_ISDIRLNK(mode)) {
79 htmlf("class='ls-mod'><a href='"); 79 htmlf("<a class='ls-mod' href='");
80 html_attr(fmt(cgit_repo->module_link, 80 html_attr(fmt(cgit_repo->module_link,
@@ -86,13 +86,11 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen,
86 } else if (S_ISDIR(mode)) { 86 } else if (S_ISDIR(mode)) {
87 html("class='ls-dir'>"); 87 cgit_tree_link(name, NULL, "ls-dir", cgit_query_head,
88 cgit_tree_link(name, NULL, NULL, cgit_query_head,
89 curr_rev, fullpath); 88 curr_rev, fullpath);
90 } else { 89 } else {
91 html("class='ls-blob'>"); 90 cgit_tree_link(name, NULL, "ls-blob", cgit_query_head,
92 cgit_tree_link(name, NULL, NULL, cgit_query_head,
93 curr_rev, fullpath); 91 curr_rev, fullpath);
94 } 92 }
95 htmlf("</td><td class='filesize'>%li</td>", size); 93 htmlf("</td><td class='ls-size'>%li</td>", size);
96 94
97 html("<td class='links'><a href='"); 95 html("<td><a href='");
98 qry = fmt("h=%s&amp;path=%s%s%s", curr_rev, 96 qry = fmt("h=%s&amp;path=%s%s%s", curr_rev,
@@ -102,3 +100,3 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen,
102 html_attr(url); 100 html_attr(url);
103 html("' class='button'>H</a></td>"); 101 html("' title='Log' class='button'>L</a></td>");
104 html("</tr>\n"); 102 html("</tr>\n");