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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
9ffde4e1
Commit
9ffde4e1
authored
Nov 04, 2020
by
Samantha Ming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 3 suggestion(s) to 2 file(s)
parent
2940c918
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/helpers/blob_helper.rb
app/helpers/blob_helper.rb
+2
-2
app/views/projects/diffs/_file_header.html.haml
app/views/projects/diffs/_file_header.html.haml
+1
-1
No files found.
app/helpers/blob_helper.rb
View file @
9ffde4e1
...
...
@@ -68,7 +68,7 @@ module BlobHelper
def
edit_blob_button
(
project
=
@project
,
ref
=
@ref
,
path
=
@path
,
options
=
{})
return
unless
blob
=
readable_blob
(
options
,
path
,
project
,
ref
)
common_classes
=
"btn btn-primary js-edit-blob
mr-2
#{
options
[
:extra_class
]
}
"
common_classes
=
"btn btn-primary js-edit-blob
gl-mr-3
#{
options
[
:extra_class
]
}
"
data
=
{
track_event:
'click_edit'
,
track_label:
'Edit'
}
if
Feature
.
enabled?
(
:web_ide_primary_edit
,
project
.
group
)
...
...
@@ -88,7 +88,7 @@ module BlobHelper
def
ide_edit_button
(
project
=
@project
,
ref
=
@ref
,
path
=
@path
,
blob
:)
return
unless
blob
common_classes
=
'btn btn-primary ide-edit-button
mr-2
'
common_classes
=
'btn btn-primary ide-edit-button
gl-mr-3
'
data
=
{
track_event:
'click_edit_ide'
,
track_label:
'Web IDE'
}
unless
Feature
.
enabled?
(
:web_ide_primary_edit
,
project
.
group
)
...
...
app/views/projects/diffs/_file_header.html.haml
View file @
9ffde4e1
...
...
@@ -33,7 +33,7 @@
=
copy_file_path_button
(
diff_file
.
file_path
)
-
if
diff_file
.
mode_changed?
%small
.
mr-1
%small
.
gl-mr-2
#{
diff_file
.
a_mode
}
→
#{
diff_file
.
b_mode
}
-
if
diff_file
.
stored_externally?
&&
diff_file
.
external_storage
==
:lfs
...
...
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