debian-mirror-gitlab/app/views/dashboard/_snippets_head.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
659 B
Text
Raw Normal View History

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)
2023-03-04 22:38:38 +05:30
= render Pajamas::ButtonComponent.new(href: new_snippet_path, variant: :confirm, button_options: { title: _("New snippet") }) do
= _("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') }