Replace files icons with fontawesome

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-06-03 13:40:07 +03:00
parent 31c963edb1
commit 4656ef957a
No known key found for this signature in database
GPG key ID: 627C5F589F467F17
12 changed files with 13 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 737 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 319 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 536 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 463 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 812 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 641 B

View file

@ -57,6 +57,10 @@
}
}
i {
color: $bg_primary;
}
img {
position: relative;
top:-1px;

View file

@ -25,8 +25,13 @@ module TreeHelper
#
# type - String type of the tree item; either 'folder' or 'file'
def tree_icon(type)
image = type == 'folder' ? 'file_dir.png' : 'file_txt.png'
image_tag(image, size: '16x16')
icon_class = if type == 'folder'
'icon-folder-close'
else
'icon-file-alt'
end
content_tag :i, nil, class: icon_class
end
def tree_hex_class(content)

View file

@ -1,7 +1,7 @@
- tree, commit = submodule_links(submodule_item)
%tr{ class: "tree-item" }
%td.tree-item-file-name
= image_tag "submodule.png"
%i.icon-archive
%span
= link_to truncate(submodule_item.name, length: 40), tree
@

View file

@ -36,8 +36,7 @@
- if @path.present?
%tr.tree-item
%td.tree-item-file-name
= image_tag "file_empty.png", size: '16x16'
= link_to "..", project_tree_path(@project, up_dir_path(tree))
= link_to "..", project_tree_path(@project, up_dir_path(tree)), class: 'prepend-left-10'
%td
%td
%td