middle panel
This commit is contained in:
parent
f34b1be281
commit
5bc97fbd3f
7 changed files with 53 additions and 13 deletions
|
@ -3,17 +3,15 @@
|
|||
-#%a.right.button{:href => "#"} Download
|
||||
-#-if can? current_user, :admin_project, @project
|
||||
%a.right.button.blue{:href => "#"} EDIT
|
||||
%h2.icon
|
||||
%span
|
||||
%d
|
||||
= link_to project_commits_path(@project) do
|
||||
= @project.name
|
||||
- if params[:path]
|
||||
- if params[:path]
|
||||
%h2.icon
|
||||
%span
|
||||
%d
|
||||
= link_to project_commits_path(@project) do
|
||||
= @project.code
|
||||
\/
|
||||
%a{:href => "#"}= params[:path].split("/").join(" / ")
|
||||
|
||||
.right= render :partial => "projects/refs", :locals => { :destination => :commits }
|
||||
|
||||
%div{:id => dom_id(@project)}
|
||||
#commits_list= render "commits"
|
||||
.clear
|
||||
|
|
7
app/views/layouts/_middle_panel.html.haml
Normal file
7
app/views/layouts/_middle_panel.html.haml
Normal file
|
@ -0,0 +1,7 @@
|
|||
%h4.middle-panel
|
||||
.project_name= truncate @project.name, :length => 20
|
||||
.git_url_wrapper
|
||||
%input.git-url.text{:id => "", :name => "", :readonly => "", :type => "text", :value => @project.url_to_repo, :class => "one_click_select"}
|
||||
- if @project.repo_exists?
|
||||
.right= render :partial => "projects/refs", :locals => { :destination => controller.controller_name == "commits" ? "commits" : "tree" }
|
||||
|
|
@ -17,11 +17,10 @@
|
|||
= render :partial => "layouts/flash"
|
||||
#container
|
||||
= render :partial => "layouts/head_panel"
|
||||
= render :partial => "layouts/middle_panel" if @project && !@project.new_record?
|
||||
.project-container
|
||||
.project-sidebar
|
||||
.fixed
|
||||
.git_url_wrapper
|
||||
%input.git-url.text{:id => "", :name => "", :readonly => "", :type => "text", :value => @project.url_to_repo, :class => "one_click_select"}
|
||||
%aside
|
||||
= link_to "Activities", project_path(@project), :class => current_page?(:controller => "projects", :action => "show", :id => @project) ? "current" : nil
|
||||
= link_to "Tree", tree_project_ref_path(@project, @project.root_ref), :class => current_page?(:controller => "refs", :action => "tree", :project_id => @project, :id => @ref || @project.root_ref ) ? "current" : nil
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
\/
|
||||
= link
|
||||
|
||||
.right= render :partial => "projects/refs", :locals => { :destination => :tree }
|
||||
.clear
|
||||
#tree-content-holder
|
||||
- if tree.is_blob?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue