tree browse -> file icons

This commit is contained in:
Dmitriy Zaporozhets 2012-03-12 23:52:10 +02:00
parent faaa8a2938
commit e44ee826ac
12 changed files with 10 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 778 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 599 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

View file

Before

Width:  |  Height:  |  Size: 485 B

After

Width:  |  Height:  |  Size: 485 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 B

View file

Before

Width:  |  Height:  |  Size: 290 B

After

Width:  |  Height:  |  Size: 290 B

View file

@ -272,7 +272,6 @@ nav.main_menu {
display: inline-block;
color: $style_color;
position: relative;
box-shadow: 1px 0 0 rgba(255, 255, 255, 0.1);
margin: 0;
float:left;
text-shadow:0 1px 1px white;

View file

@ -144,6 +144,7 @@
th {
background:#f5f5f5;
border-color:#f1f1f1;
}
}

View file

@ -24,7 +24,7 @@
- if tree.up_dir?
%tr{ :class => "tree-item", :url => tree.up_dir_path }
%td.tree-item-file-name
= image_tag "dir.png"
= image_tag "file_empty.png"
= link_to "..", tree.up_dir_path, :remote => :true
%td
%td

View file

@ -2,7 +2,7 @@
.view_file
.view_file_header
.row
.span1.file_icon= image_tag "txt.png"
.span1.file_icon= image_tag( file.image? ? "file_img.png" : "file_txt.png")
.span2.mode_text= file.mode
.span7.file_name= name
.span4.right

View file

@ -4,9 +4,14 @@
%tr{ :class => "tree-item", :url => tree_file_project_ref_path(@project, @ref, file) }
%td.tree-item-file-name
- if content.is_a?(Grit::Blob)
= image_tag "txt.png"
- if content.text?
= image_tag "file_txt.png"
- elsif content.image?
= image_tag "file_img.png"
- else
= image_tag "file_bin.png"
- else
= image_tag "dir.png"
= image_tag "file_dir.png"
= link_to truncate(content.name, :length => 40), tree_file_project_ref_path(@project, @ref || @commit.id, file), :remote => :true
%td.cgray
= time_ago_in_words(content_commit.committed_date)