2019-04-12 11:59:24 +00:00
|
|
|
.page-title-holder.d-flex.align-items-center
|
2022-06-08 21:08:52 +00:00
|
|
|
%h1.page-title.gl-font-size-h-display= _('Snippets')
|
2018-10-06 14:21:38 +00:00
|
|
|
|
2019-02-22 12:12:36 +00:00
|
|
|
- if current_user && current_user.snippets.any? || @snippets.any?
|
2018-10-06 14:21:38 +00:00
|
|
|
.page-title-controls
|
2020-01-23 12:08:38 +00:00
|
|
|
- if can?(current_user, :create_snippet)
|
2021-03-01 12:11:29 +00:00
|
|
|
= link_to _("New snippet"), new_snippet_path, class: "gl-button btn btn-confirm", title: _("New snippet")
|
2018-10-06 14:21:38 +00:00
|
|
|
|
2016-12-07 22:03:00 +00:00
|
|
|
.top-area
|
2021-11-12 18:12:20 +00:00
|
|
|
= gl_tabs_nav({ class: 'gl-border-0' }) do
|
|
|
|
= gl_tab_link_to _('Your snippets'), dashboard_snippets_path, { title: _('Your snippets') }
|
|
|
|
= gl_tab_link_to _('Explore snippets'), explore_snippets_path, { title: _('Explore snippets') }
|