summaryrefslogtreecommitdiff
path: root/app/views/layouts/project.html.haml
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-11-16 08:38:53 +0300
committergitlabhq <m@gitlabhq.com>2011-11-16 08:38:53 +0300
commitaf08ed6b66530b8efc68bf45e1f11599e333b826 (patch)
tree1db2fb4d69f60a7da99ec69e6bdcd1a9eb1fd183 /app/views/layouts/project.html.haml
parentf294b8d4c3209689dde00326ca6270afa0b4843e (diff)
downloadgitlab-ce-af08ed6b66530b8efc68bf45e1f11599e333b826.tar.gz
refactoring
Diffstat (limited to 'app/views/layouts/project.html.haml')
-rw-r--r--app/views/layouts/project.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/project.html.haml b/app/views/layouts/project.html.haml
index 7c5a162f22f..6407da10403 100644
--- a/app/views/layouts/project.html.haml
+++ b/app/views/layouts/project.html.haml
@@ -5,7 +5,7 @@
GitLab #{" - #{@project.name}" if @project && !@project.new_record?}
= stylesheet_link_tag "application"
= javascript_include_tag "application"
- - if current_page?(tree_project_path(@project)) || current_page?(project_commits_path(@project))
+ - if current_page?(tree_project_ref_path(@project, @project.root_ref)) || current_page?(project_commits_path(@project))
= auto_discovery_link_tag(:atom, project_commits_url(@project, :atom, :ref => @ref, :private_token => current_user.private_token), :title => "Recent commits to #{@project.name}:#{@ref}")
- if request.path == project_issues_path(@project)
= auto_discovery_link_tag(:atom, project_issues_url(@project, :atom, :private_token => current_user.private_token), :title => "#{@project.name} issues")
@@ -24,7 +24,7 @@
%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_path(@project), :class => current_page?(:controller => "projects", :action => "tree", :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
= link_to "Commits", project_commits_path(@project), :class => current_page?(:controller => "commits", :action => "index", :project_id => @project) ? "current" : nil
= link_to "Network graph", graph_project_path(@project), :class => current_page?(:controller => "projects", :action => "graph", :id => @project) ? "current" : nil
= link_to team_project_path(@project), :class => (current_page?(:controller => "projects", :action => "team", :id => @project) || controller.controller_name == "team_members") ? "current" : nil do