Update usages of project_commit[s] route helpers

This commit is contained in:
Robert Speicher 2012-09-25 18:50:02 -04:00
parent 99d391332f
commit 1048917232
8 changed files with 9 additions and 9 deletions

View file

@ -10,8 +10,8 @@
- if controller_name == 'projects' && action_name == 'index'
= auto_discovery_link_tag :atom, projects_url(:atom, private_token: current_user.private_token), title: "Dashboard feed"
- if @project && !@project.new_record?
- if current_page?(project_tree_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 current_page?(project_tree_path(@project, @ref)) || current_page?(project_commits_path(@project, @ref))
= auto_discovery_link_tag(:atom, project_commits_url(@project, @ref, format: :atom, 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")
= csrf_meta_tags

View file

@ -8,7 +8,7 @@
= link_to project_tree_path(@project, @project.root_ref) do
Files
%li{class: commit_tab_class}
= link_to "Commits", project_history_path(@project, @project.root_ref)
= link_to "Commits", project_commits_path(@project, @project.root_ref)
%li{class: tab_class(:network)}
= link_to "Network", graph_project_path(@project)