2019-07-31 22:56:46 +05:30
|
|
|
.page-title-holder.d-flex.align-items-center
|
2022-07-23 23:45:48 +05:30
|
|
|
%h1.page-title.gl-font-size-h-display= _('Snippets')
|
2018-12-13 13:39:08 +05:30
|
|
|
|
2019-07-07 11:18:12 +05:30
|
|
|
- if current_user && current_user.snippets.any? || @snippets.any?
|
2018-12-13 13:39:08 +05:30
|
|
|
.page-title-controls
|
2020-03-13 15:44:24 +05:30
|
|
|
- if can?(current_user, :create_snippet)
|
2021-04-17 20:07:23 +05:30
|
|
|
= link_to _("New snippet"), new_snippet_path, class: "gl-button btn btn-confirm", title: _("New snippet")
|
2018-12-13 13:39:08 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.top-area
|
2021-12-11 22:18:48 +05:30
|
|
|
= 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') }
|