gitlab-org--gitlab-foss/app/views/dashboard/_snippets_head.html.haml

16 lines
678 B
Text
Raw Normal View History

.page-title-holder.d-flex.align-items-center
%h1.page-title= _('Snippets')
2019-02-22 07:12:36 -05:00
- if current_user && current_user.snippets.any? || @snippets.any?
.page-title-controls
2019-02-22 07:12:36 -05:00
= link_to _("New snippet"), new_snippet_path, class: "btn btn-success", title: _("New snippet")
.top-area
2018-04-19 23:34:20 -04:00
%ul.nav-links.nav.nav-tabs
= nav_link(page: dashboard_snippets_path, html_options: {class: 'home'}) do
= link_to dashboard_snippets_path, title: 'Your snippets', data: {placement: 'right'} do
Your snippets
= nav_link(page: explore_snippets_path) do
= link_to explore_snippets_path, title: 'Explore snippets', data: {placement: 'right'} do
Explore snippets