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
Léo-Paul Géneau
gitlab-ce
Commits
6f9e94df
Commit
6f9e94df
authored
May 22, 2019
by
Marcel van Remmerden
Committed by
Annabel Dunstone Gray
May 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give 'New Snippet' button green outline
parent
bc4a18ec
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
app/views/snippets/_actions.html.haml
app/views/snippets/_actions.html.haml
+1
-1
changelogs/unreleased/61324-non-project-snippet-new-snippet-button-should-be-green-outline.yml
...ct-snippet-new-snippet-button-should-be-green-outline.yml
+5
-0
No files found.
app/views/snippets/_actions.html.haml
View file @
6f9e94df
...
...
@@ -7,7 +7,7 @@
-
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-inverted btn-remove"
,
title:
_
(
'Delete Snippet'
)
do
=
_
(
"Delete"
)
=
link_to
new_snippet_path
,
class:
"btn btn-grouped btn-
inverted btn-create
"
,
title:
_
(
"New snippet"
)
do
=
link_to
new_snippet_path
,
class:
"btn btn-grouped btn-
success btn-inverted
"
,
title:
_
(
"New snippet"
)
do
=
_
(
"New snippet"
)
-
if
@snippet
.
submittable_as_spam_by?
(
current_user
)
=
link_to
_
(
'Submit as spam'
),
mark_as_spam_snippet_path
(
@snippet
),
method: :post
,
class:
'btn btn-grouped btn-spam'
,
title:
_
(
'Submit as spam'
)
...
...
changelogs/unreleased/61324-non-project-snippet-new-snippet-button-should-be-green-outline.yml
0 → 100644
View file @
6f9e94df
---
title
:
Give New Snippet button green outline
merge_request
:
28559
author
:
Marcel van Remmerden
type
:
other
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