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
c3a7af13
Commit
c3a7af13
authored
Feb 03, 2021
by
Yogi
Committed by
Kushal Pandya
Feb 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply new GitLab UI for buttons in empty project snippets placeholder
parent
80cf00a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
app/views/shared/empty_states/_snippets.html.haml
app/views/shared/empty_states/_snippets.html.haml
+2
-2
changelogs/unreleased/gl-button-snippets.yml
changelogs/unreleased/gl-button-snippets.yml
+5
-0
No files found.
app/views/shared/empty_states/_snippets.html.haml
View file @
c3a7af13
...
...
@@ -12,7 +12,7 @@
=
s_
(
'SnippetsEmptyState|Store, share, and embed small pieces of code and text.'
)
.mt-2
<
-
if
button_path
=
link_to
s_
(
'SnippetsEmptyState|New snippet'
),
button_path
,
class:
'btn btn-success'
,
title:
s_
(
'SnippetsEmptyState|New snippet'
),
id:
'new_snippet_link'
,
data:
{
qa_selector:
'create_first_snippet_link'
}
=
link_to
s_
(
'SnippetsEmptyState|Documentation'
),
help_page_path
(
'user/snippets.md'
),
class:
'btn btn-default'
,
title:
s_
(
'SnippetsEmptyState|Documentation'
)
=
link_to
s_
(
'SnippetsEmptyState|New snippet'
),
button_path
,
class:
'btn
gl-button
btn-success'
,
title:
s_
(
'SnippetsEmptyState|New snippet'
),
id:
'new_snippet_link'
,
data:
{
qa_selector:
'create_first_snippet_link'
}
=
link_to
s_
(
'SnippetsEmptyState|Documentation'
),
help_page_path
(
'user/snippets.md'
),
class:
'btn
gl-button
btn-default'
,
title:
s_
(
'SnippetsEmptyState|Documentation'
)
-
else
%h4
.text-center
=
s_
(
'SnippetsEmptyState|There are no snippets to show.'
)
changelogs/unreleased/gl-button-snippets.yml
0 → 100644
View file @
c3a7af13
---
title
:
Apply new GitLab UI for buttons in empty project snippets placeholder
merge_request
:
53157
author
:
Yogi (@yo)
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