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;
|
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 @@
|
||||||
|
|
||||||
th {
|
th {
|
||||||
background:#f5f5f5;
|
background:#f5f5f5;
|
||||||
|
border-color:#f1f1f1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 @@
|
||||||
.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 @@
|
||||||
%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
|
||||||
|
= image_tag "file_bin.png"
|
||||||
- else
|
- 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
|
= 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)
|
||||||
|
|