Update badge in create MR diff page to pajamas
What does this MR do and why?
Update badge in create MR diff page to pajamas
- update span to gl badge helper
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Implement the following patch
diff --git a/app/views/projects/diffs/_file_header.html.haml b/app/views/projects/diffs/_file_header.html.haml
index dc89fee9b1e..7b7c3d1dd87 100644
--- a/app/views/projects/diffs/_file_header.html.haml
+++ b/app/views/projects/diffs/_file_header.html.haml
@@ -35,6 +35,6 @@
%small.gl-mr-2
#{diff_file.a_mode} → #{diff_file.b_mode}
- - if diff_file.stored_externally? && diff_file.external_storage == :lfs
+ - if true
= gl_badge_tag(_('LFS'), nil, { class: 'label-lfs' } )
- Navigate to a project
- Edit a file and start creating an MR
- Navigate to the bottom and view the diff of the file
- Verify
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #344364 (closed)
Edited by Alexander Turinske