Skip to content

Update badge in create MR diff page to pajamas

Alexander Turinske requested to merge 344364-create-mr-diff-badge-pajamas into master

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
Screen_Shot_2022-01-10_at_16.21.55 image

How to set up and validate locally

  1. 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' } )
  1. Navigate to a project
  2. Edit a file and start creating an MR
  3. Navigate to the bottom and view the diff of the file
  4. 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.

Related to #344364 (closed)

Edited by Alexander Turinske

Merge request reports

Loading