Commit e44ee826 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

tree browse -> file icons

parent 55d0e47483f6
app/assets/images/comment_add.png

1.16 KB | W: | H:

app/assets/images/comment_add.png

778 Bytes | W: | H:

app/assets/images/comment_add.png
app/assets/images/comment_add.png
app/assets/images/comment_add.png
app/assets/images/comment_add.png
  • 2-up
  • Swipe
  • Onion skin
app/assets/images/download.png

3.55 KB | W: | H:

app/assets/images/download.png

599 Bytes | W: | H:

app/assets/images/download.png
app/assets/images/download.png
app/assets/images/download.png
app/assets/images/download.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -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;
......
......@@ -144,6 +144,7 @@
th {
background:#f5f5f5;
border-color:#f1f1f1;
}
}
......
......@@ -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
......
......@@ -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
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment