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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
226bc587
Commit
226bc587
authored
Jul 01, 2016
by
Connor Shea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use btn-danger for delete button.
parent
443fdff1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/views/snippets/_actions.html.haml
app/views/snippets/_actions.html.haml
+1
-1
No files found.
app/views/snippets/_actions.html.haml
View file @
226bc587
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
=
link_to
edit_snippet_path
(
@snippet
),
class:
"btn btn-grouped snippable-edit"
do
=
link_to
edit_snippet_path
(
@snippet
),
class:
"btn btn-grouped snippable-edit"
do
Edit
Edit
-
if
can?
(
current_user
,
:admin_personal_snippet
,
@snippet
)
-
if
can?
(
current_user
,
:admin_personal_snippet
,
@snippet
)
=
link_to
snippet_path
(
@snippet
),
method: :delete
,
data:
{
confirm:
"Are you sure?"
},
class:
"btn btn-grouped btn-
warning
"
,
title:
'Delete Snippet'
do
=
link_to
snippet_path
(
@snippet
),
method: :delete
,
data:
{
confirm:
"Are you sure?"
},
class:
"btn btn-grouped btn-
danger
"
,
title:
'Delete Snippet'
do
Delete
Delete
-
if
current_user
-
if
current_user
.visible-xs-block.dropdown
.visible-xs-block.dropdown
...
...
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