Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/blob/_breadcrumb.html.haml')
-rw-r--r--app/views/projects/blob/_breadcrumb.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/blob/_breadcrumb.html.haml b/app/views/projects/blob/_breadcrumb.html.haml
index 539453bf6af..c140eecd8c1 100644
--- a/app/views/projects/blob/_breadcrumb.html.haml
+++ b/app/views/projects/blob/_breadcrumb.html.haml
@@ -22,11 +22,11 @@
-# only show normal/blame view links for text files
- if blob.readable_text?
- if blame
- = link_button_to _('Normal view'), project_blob_path(@project, @id)
+ = link_button_to _('Normal view'), project_blob_path(@project, @id, ref_type: @ref_type)
- else
- = link_button_to _('Blame'), project_blame_path(@project, @id), class: 'js-blob-blame-link' unless blob.empty?
+ = link_button_to _('Blame'), project_blame_path(@project, @id, ref_type: @ref_type), class: 'js-blob-blame-link' unless blob.empty?
- = link_button_to _('History'), project_commits_path(@project, @id)
+ = link_button_to _('History'), project_commits_path(@project, @id, ref_type: @ref_type)
= link_button_to _('Permalink'), project_blob_path(@project, tree_join(@commit.sha, @path)),
class: 'js-data-file-blob-permalink-url'