Commit e44ee826ac1cb21d3af54381608c225e0644b79b
1 parent
faaa8a29
Exists in
master
and in
4 other branches
tree browse -> file icons
Showing
14 changed files
with
10 additions
and
5 deletions
Show diff stats
app/assets/images/comment_add.png
app/assets/images/dir.png
485 Bytes
app/assets/images/download.png
219 Bytes
485 Bytes
319 Bytes
536 Bytes
290 Bytes
app/assets/images/txt.png
290 Bytes
app/assets/stylesheets/common.scss
app/assets/stylesheets/tree.scss
app/views/refs/_tree.html.haml
app/views/refs/_tree_file.html.haml
app/views/refs/_tree_item.html.haml
... | ... | @@ -4,9 +4,14 @@ |
4 | 4 | %tr{ :class => "tree-item", :url => tree_file_project_ref_path(@project, @ref, file) } |
5 | 5 | %td.tree-item-file-name |
6 | 6 | - if content.is_a?(Grit::Blob) |
7 | - = image_tag "txt.png" | |
7 | + - if content.text? | |
8 | + = image_tag "file_txt.png" | |
9 | + - elsif content.image? | |
10 | + = image_tag "file_img.png" | |
11 | + - else | |
12 | + = image_tag "file_bin.png" | |
8 | 13 | - else |
9 | - = image_tag "dir.png" | |
14 | + = image_tag "file_dir.png" | |
10 | 15 | = link_to truncate(content.name, :length => 40), tree_file_project_ref_path(@project, @ref || @commit.id, file), :remote => :true |
11 | 16 | %td.cgray |
12 | 17 | = time_ago_in_words(content_commit.committed_date) | ... | ... |