Commit 86a7864dc78ed9168df889a5994ee7ef80a29476

Authored by Robert Speicher
1 parent b462a133

Fix various links

app/views/blame/show.html.haml
@@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
19 %small blame 19 %small blame
20 %span.options 20 %span.options
21 = link_to "raw", project_blob_path(@project, @id), class: "btn very_small", target: "_blank" 21 = link_to "raw", project_blob_path(@project, @id), class: "btn very_small", target: "_blank"
22 - = link_to "history", project_commits_path(@project, path: params[:path], ref: @ref), class: "btn very_small" 22 + = link_to "history", project_commits_path(@project, @id), class: "btn very_small"
23 = link_to "source", project_tree_path(@project, @id), class: "btn very_small" 23 = link_to "source", project_tree_path(@project, @id), class: "btn very_small"
24 .file_content.blame 24 .file_content.blame
25 %table 25 %table
app/views/events/_event_last_push.html.haml
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 = image_tag gravatar_icon(event.author_email), class: "avatar" 4 = image_tag gravatar_icon(event.author_email), class: "avatar"
5 %span You pushed to 5 %span You pushed to
6 = event.ref_type 6 = event.ref_type
7 - = link_to project_commits_path(event.project, ref: event.ref_name) do 7 + = link_to project_commits_path(event.project, event.ref_name) do
8 %strong= truncate(event.ref_name, length: 28) 8 %strong= truncate(event.ref_name, length: 28)
9 at 9 at
10 %strong= link_to event.project.name, event.project 10 %strong= link_to event.project.name, event.project
app/views/events/_event_push.html.haml
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 .event-title 5 .event-title
6 %strong.author_name #{event.author_name} 6 %strong.author_name #{event.author_name}
7 %span.event_label.pushed #{event.push_action_name} #{event.ref_type} 7 %span.event_label.pushed #{event.push_action_name} #{event.ref_type}
8 - = link_to project_commits_path(event.project, ref: event.ref_name) do 8 + = link_to project_commits_path(event.project, event.ref_name) do
9 %strong= event.ref_name 9 %strong= event.ref_name
10 at 10 at
11 %strong= link_to event.project.name, event.project 11 %strong= link_to event.project.name, event.project
app/views/layouts/_head.html.haml
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 - if controller_name == 'projects' && action_name == 'index' 10 - if controller_name == 'projects' && action_name == 'index'
11 = auto_discovery_link_tag :atom, projects_url(:atom, private_token: current_user.private_token), title: "Dashboard feed" 11 = auto_discovery_link_tag :atom, projects_url(:atom, private_token: current_user.private_token), title: "Dashboard feed"
12 - if @project && !@project.new_record? 12 - if @project && !@project.new_record?
13 - - if current_controller?(:tree, :commit, :commits) 13 + - if current_controller?(:tree, :commits)
14 = 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}") 14 = 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}")
15 - if current_controller?(:issues) 15 - if current_controller?(:issues)
16 = auto_discovery_link_tag(:atom, project_issues_url(@project, :atom, private_token: current_user.private_token), title: "#{@project.name} issues") 16 = auto_discovery_link_tag(:atom, project_issues_url(@project, :atom, private_token: current_user.private_token), title: "#{@project.name} issues")
app/views/protected_branches/index.html.haml
@@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
34 - @branches.each do |branch| 34 - @branches.each do |branch|
35 %tr 35 %tr
36 %td 36 %td
37 - = link_to project_commits_path(@project, ref: branch.name) do 37 + = link_to project_commits_path(@project, branch.name) do
38 %strong= branch.name 38 %strong= branch.name
39 - if branch.name == @project.root_ref 39 - if branch.name == @project.root_ref
40 %span.label default 40 %span.label default
app/views/repositories/_branch.html.haml
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 - commit = CommitDecorator.decorate(commit) 2 - commit = CommitDecorator.decorate(commit)
3 %tr 3 %tr
4 %td 4 %td
5 - = link_to project_commits_path(@project, ref: branch.name) do 5 + = link_to project_commits_path(@project, branch.name) do
6 %strong= truncate(branch.name, length: 60) 6 %strong= truncate(branch.name, length: 60)
7 - if branch.name == @project.root_ref 7 - if branch.name == @project.root_ref
8 %span.label default 8 %span.label default
app/views/repositories/_feed.html.haml
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 - commit = CommitDecorator.new(commit) 2 - commit = CommitDecorator.new(commit)
3 %tr 3 %tr
4 %td 4 %td
5 - = link_to project_commits_path(@project, ref: commit.head.name) do 5 + = link_to project_commits_path(@project, commit.head.name) do
6 %strong 6 %strong
7 = commit.head.name 7 = commit.head.name
8 - if commit.head.name == @project.root_ref 8 - if commit.head.name == @project.root_ref
app/views/repositories/tags.html.haml
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 - commit = CommitDecorator.decorate(commit) 12 - commit = CommitDecorator.decorate(commit)
13 %tr 13 %tr
14 %td 14 %td
15 - %strong= link_to tag.name, project_commits_path(@project, ref: tag.name), class: "" 15 + %strong= link_to tag.name, project_commits_path(@project, tag.name), class: ""
16 %td 16 %td
17 = link_to project_commit_path(@project, commit.id) do 17 = link_to project_commit_path(@project, commit.id) do
18 %code= commit.short_id 18 %code= commit.short_id
app/views/tree/_tree_file.html.haml
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 %small #{file.mode} 6 %small #{file.mode}
7 %span.options 7 %span.options
8 = link_to "raw", project_blob_path(@project, @id), class: "btn very_small", target: "_blank" 8 = link_to "raw", project_blob_path(@project, @id), class: "btn very_small", target: "_blank"
9 - = link_to "history", project_commits_path(@project, path: @path, ref: @ref), class: "btn very_small" 9 + = link_to "history", project_commits_path(@project, @id), class: "btn very_small"
10 = link_to "blame", project_blame_path(@project, @id), class: "btn very_small" 10 = link_to "blame", project_blame_path(@project, @id), class: "btn very_small"
11 - if file.text? 11 - if file.text?
12 - if gitlab_markdown?(name) 12 - if gitlab_markdown?(name)