Unidiff1 files changed, 7 insertions, 1 deletions
|
diff --git a/ui-tree.c b/ui-tree.c index caf6a9e..c608754 100644 --- a/ ui-tree.c+++ b/ ui-tree.c |
|
@@ -115,2 +115,3 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, |
115 | char *fullpath; |
115 | char *fullpath; |
| |
116 | char *class; |
116 | enum object_type type; |
117 | enum object_type type; |
@@ -147,3 +148,8 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, |
147 | } else { |
148 | } else { |
148 | cgit_tree_link(name, NULL, "ls-blob", ctx.qry.head, |
149 | class = strrchr(name, '.'); |
| |
150 | if (class != NULL) { |
| |
151 | class = fmt("ls-blob %s", class + 1); |
| |
152 | } else |
| |
153 | class = "ls-blob"; |
| |
154 | cgit_tree_link(name, NULL, class, ctx.qry.head, |
149 | curr_rev, fullpath); |
155 | curr_rev, fullpath); |
|