|
|
-#%a.right.button{:href => "#"} Download
|
|
|
|
|
-#-if can? current_user, :admin_project, @project
|
|
|
|
|
%a.right.button.blue{:href => "#"} EDIT
|
|
|
|
|
#tree-breadcrumbs
|
|
#tree-breadcrumbs
|
|
|
%h2.icon
|
|
%h2.icon
|
|
|
%span
|
|
%span
|
|
|
%d
|
|
%d
|
|
|
= link_to tree_project_ref_path(@project, @ref, :path => nil), :remote => true do
|
|
= link_to tree_project_ref_path(@project, @ref, :path => nil), :remote => true do
|
|
|
= @project.name
|
|
= @project.name
|
|
|
- if params[:path]
|
|
- tree.breadcrumbs(2) do |link|
|
|
|
- part_path = ""
|
|
|
|
|
- params[:path].split("\/").each do |part|
|
|
|
|
|
- part_path = File.join(part_path, part) unless part_path.empty?
|
|
|
|
|
- if part_path.empty?
|
|
|
|
|
- part_path = part
|
|
|
|
|
\/
|
|
\/
|
|
|
= link_to truncate(part, :length => 40), tree_file_project_ref_path(@project, @ref, :path => part_path), :remote => :true
|
|
= link
|
|
|
|
|
|
|
|
.right= render :partial => "projects/refs", :locals => { :destination => :tree }
|
|
.right= render :partial => "projects/refs", :locals => { :destination => :tree }
|
|
|
.clear
|
|
.clear
|
|
|
|
|
|
|
|
#tree-content-holder
|
|
#tree-content-holder
|
|
|
- if tree.is_a?(Grit::Blob)
|
|
- if tree.is_blob?
|
|
|
= render :partial => "refs/tree_file", :locals => { :name => tree.name, :content => tree.data, :file => tree }
|
|
= render :partial => "refs/tree_file", :locals => { :name => tree.name, :content => tree.data, :file => tree }
|
|
|
- else
|
|
- else
|
|
|
- contents = tree.contents
|
|
- contents = tree.contents
|
| ... | @@ -30,13 +21,13 @@ |
... | @@ -30,13 +21,13 @@ |
|
|
%th Last Update
|
|
%th Last Update
|
|
|
%th
|
|
%th
|
|
|
Last commit
|
|
Last commit
|
|
|
= link_to "history", project_commits_path(@project, :path => params[:path], :ref => @ref), :class => "right"
|
|
= link_to "history", tree.history_path, :class => "right"
|
|
|
- if params[:path]
|
|
|
|
|
- file = File.join(params[:path], "..")
|
|
- if tree.up_dir?
|
|
|
%tr{ :class => "tree-item", :url => tree_file_project_ref_path(@project, @ref, file) }
|
|
%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 "dir.png"
|
|
|
= link_to "..", tree_file_project_ref_path(@project, @ref, file), :remote => :true
|
|
= link_to "..", tree.up_dir_path, :remote => :true
|
|
|
%td
|
|
%td
|
|
|
%td
|
|
%td
|
|
|
|
|
|
| ... | |
... | |
| ... | | ... | |