Commit e44ee826 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

tree browse -> file icons

parent faaa8a29
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 { ...@@ -272,7 +272,6 @@ nav.main_menu {
display: inline-block; display: inline-block;
color: $style_color; color: $style_color;
position: relative; position: relative;
box-shadow: 1px 0 0 rgba(255, 255, 255, 0.1);
margin: 0; margin: 0;
float:left; float:left;
text-shadow:0 1px 1px white; text-shadow:0 1px 1px white;
......
...@@ -144,6 +144,7 @@ ...@@ -144,6 +144,7 @@
th { th {
background:#f5f5f5; background:#f5f5f5;
border-color:#f1f1f1;
} }
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
- if tree.up_dir? - if tree.up_dir?
%tr{ :class => "tree-item", :url => tree.up_dir_path } %tr{ :class => "tree-item", :url => tree.up_dir_path }
%td.tree-item-file-name %td.tree-item-file-name
= image_tag "dir.png" = image_tag "file_empty.png"
= link_to "..", tree.up_dir_path, :remote => :true = link_to "..", tree.up_dir_path, :remote => :true
%td %td
%td %td
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.view_file .view_file
.view_file_header .view_file_header
.row .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 .span2.mode_text= file.mode
.span7.file_name= name .span7.file_name= name
.span4.right .span4.right
......
...@@ -4,9 +4,14 @@ ...@@ -4,9 +4,14 @@
%tr{ :class => "tree-item", :url => tree_file_project_ref_path(@project, @ref, file) } %tr{ :class => "tree-item", :url => tree_file_project_ref_path(@project, @ref, file) }
%td.tree-item-file-name %td.tree-item-file-name
- if content.is_a?(Grit::Blob) - 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 - else
= image_tag "dir.png" = image_tag "file_bin.png"
- else
= image_tag "file_dir.png"
= link_to truncate(content.name, :length => 40), tree_file_project_ref_path(@project, @ref || @commit.id, file), :remote => :true = link_to truncate(content.name, :length => 40), tree_file_project_ref_path(@project, @ref || @commit.id, file), :remote => :true
%td.cgray %td.cgray
= time_ago_in_words(content_commit.committed_date) = 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