Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
815bb731
Commit
815bb731
authored
Apr 24, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix image diff view modes
parent
ecfc08a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app/views/projects/diffs/_replaced_image_diff.html.haml
app/views/projects/diffs/_replaced_image_diff.html.haml
+5
-5
No files found.
app/views/projects/diffs/_replaced_image_diff.html.haml
View file @
815bb731
...
...
@@ -14,7 +14,7 @@
.wrap
.frame.deleted
=
image_tag
(
old_blob_raw_url
,
alt:
diff_file
.
old_path
,
lazy:
false
)
%p
.image-info.
d-non
e
%p
.image-info.
hid
e
%span
.meta-filesize
=
number_to_human_size
(
old_blob
.
size
)
|
%strong
W:
...
...
@@ -24,7 +24,7 @@
%span
.meta-height
.wrap
=
render
partial:
"projects/diffs/image_diff_frame"
,
locals:
{
class_name:
"added js-image-frame
#{
class_name
}
"
,
position:
position
,
note_type:
DiffNote
.
name
,
image_path:
blob_raw_url
,
alt:
diff_file
.
new_path
}
%p
.image-info.
d-non
e
%p
.image-info.
hid
e
%span
.meta-filesize
=
number_to_human_size
(
blob
.
size
)
|
%strong
W:
...
...
@@ -33,7 +33,7 @@
%strong
H:
%span
.meta-height
.swipe.view.
d-non
e
.swipe.view.
hid
e
.swipe-frame
.frame.deleted
=
image_tag
(
old_blob_raw_url
,
alt:
diff_file
.
old_path
,
lazy:
false
)
...
...
@@ -43,7 +43,7 @@
%span
.top-handle
%span
.bottom-handle
.onion-skin.view.
d-non
e
.onion-skin.view.
hid
e
.onion-skin-frame
.frame.deleted
=
image_tag
(
old_blob_raw_url
,
alt:
diff_file
.
old_path
,
lazy:
false
)
...
...
@@ -54,7 +54,7 @@
.dragger
{
:style
=>
"left: 0px;"
}
.opaque
.view-modes.
d-non
e
.view-modes.
hid
e
%ul
.view-modes-menu
%li
.two-up
{
data:
{
mode:
'two-up'
}
}
2-up
%li
.swipe
{
data:
{
mode:
'swipe'
}
}
Swipe
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment