File tree 5 files changed +11
-102
lines changed
spec/javascripts/diffs/mock_data
5 files changed +11
-102
lines changed Original file line number Diff line number Diff line change @@ -166,18 +166,16 @@ export default {
166
166
:title =" diffFile.oldPath"
167
167
class =" file-title-name"
168
168
data-container =" body"
169
- >
170
- {{ diffFile.oldPath }}
171
- </strong >
169
+ v-html =" diffFile.oldPathHtml"
170
+ ></strong >
172
171
→
173
172
<strong
174
173
v-tooltip
175
174
:title =" diffFile.newPath"
176
175
class =" file-title-name"
177
176
data-container =" body"
178
- >
179
- {{ diffFile.newPath }}
180
- </strong >
177
+ v-html =" diffFile.newPathHtml"
178
+ ></strong >
181
179
</span >
182
180
183
181
<strong
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ class DiffFileEntity < Grape::Entity
84
84
end
85
85
86
86
expose :old_path_html do |diff_file |
87
- old_path = mark_inline_diffs ( diff_file . old_path , diff_file . new_path )
87
+ old_path , _ = mark_inline_diffs ( diff_file . old_path , diff_file . new_path )
88
88
old_path
89
89
end
90
90
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Fix showing diff file header for renamed files
3
+ merge_request : 22089
4
+ author :
5
+ type : fixed
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export default {
33
33
contentSha : 'c48ee0d1bf3b30453f5b32250ce03134beaa6d13' ,
34
34
storedExternally : null ,
35
35
externalStorage : null ,
36
- oldPathHtml : [ 'CHANGELOG' , 'CHANGELOG' ] ,
36
+ oldPathHtml : 'CHANGELOG' ,
37
37
newPathHtml : 'CHANGELOG' ,
38
38
editPath : '/gitlab-org/gitlab-test/edit/spooky-stuff/CHANGELOG' ,
39
39
viewPath : '/gitlab-org/gitlab-test/blob/spooky-stuff/CHANGELOG' ,
You can’t perform that action at this time.
0 commit comments