tree browse -> file icons
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 778 B |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 599 B |
BIN
app/assets/images/file_bin.png
Normal file
After Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 485 B After Width: | Height: | Size: 485 B |
BIN
app/assets/images/file_empty.png
Normal file
After Width: | Height: | Size: 319 B |
BIN
app/assets/images/file_img.png
Normal file
After Width: | Height: | Size: 536 B |
Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 290 B |
|
@ -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)
|
||||
|
|