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
e9dee299
Commit
e9dee299
authored
May 10, 2018
by
Collen Kriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature check to Lock button
parent
b83786b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
app/views/projects/blob/_header.html.haml
app/views/projects/blob/_header.html.haml
+2
-1
No files found.
app/views/projects/blob/_header.html.haml
View file @
e9dee299
...
...
@@ -11,7 +11,8 @@
=
view_on_environment_button
(
@commit
.
sha
,
@path
,
@environment
)
if
@environment
.btn-group
{
role:
"group"
}
<
=
lock_file_link
(
html_options:
{
class:
'btn btn-sm path-lock'
})
-
if
@project
.
feature_available?
(
:file_locks
)
=
lock_file_link
(
html_options:
{
class:
'btn btn-sm path-lock'
})
=
edit_blob_button
=
ide_edit_button
...
...
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