BigW Consortium Gitlab

Commit 4caa9b63 by Douwe Maan

Rename displaying_blame to blame

parent a5792a86
......@@ -7,7 +7,7 @@
#blob-content-holder.tree-holder
.file-holder
= render "projects/blob/header", blob: @blob, displaying_blame: true
= render "projects/blob/header", blob: @blob, blame: true
.table-responsive.file-content.blame.code.js-syntax-highlight
%table
......
- displaying_blame = local_assigns.fetch(:displaying_blame, false)
- blame = local_assigns.fetch(:blame, false)
.js-file-title.file-title-flex-parent
.file-header-content
= blob_icon blob.mode, blob.name
......@@ -13,14 +13,14 @@
.file-actions.hidden-xs
.btn-group{ role: "group" }<
= copy_blob_content_button(blob) if !displaying_blame && blob_text_viewable?(blob)
= copy_blob_content_button(blob) if !blame && blob_text_viewable?(blob)
= open_raw_file_button(namespace_project_raw_path(@project.namespace, @project, @id))
= view_on_environment_button(@commit.sha, @path, @environment) if @environment
.btn-group{ role: "group" }<
-# only show normal/blame view links for text files
- if blob_text_viewable?(blob)
- if displaying_blame
- if blame
= link_to 'Normal view', namespace_project_blob_path(@project.namespace, @project, @id),
class: 'btn btn-sm'
- else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment