Skip to content
Snippets Groups Projects
Commit cc37d1df authored by Douwe Maan's avatar Douwe Maan
Browse files

Remove unused toggle from diff discussion diff headers

parent ecc6cc8b
No related branches found
No related tags found
2 merge requests!12073Add RC2 changes to 9-3-stable,!11192Remove unused toggle from diff discussion diff headers
Pipeline #
Loading
Loading
@@ -3,7 +3,7 @@
 
.diff-file.file-holder
.js-file-title.file-title
= render "projects/diffs/file_header", diff_file: diff_file, blob: blob, diff_commit: diff_file.content_commit, project: discussion.project, url: discussion_path(discussion)
= render "projects/diffs/file_header", diff_file: diff_file, blob: blob, diff_commit: diff_file.content_commit, project: discussion.project, url: discussion_path(discussion), show_toggle: false
 
.diff-content.code.js-syntax-highlight
%table
Loading
Loading
%i.fa.diff-toggle-caret.fa-fw
- show_toggle = local_assigns.fetch(:show_toggle, true)
- if show_toggle
%i.fa.diff-toggle-caret.fa-fw
- if defined?(blob) && blob && diff_file.submodule?
%span
= icon('archive fw')
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment