debian-mirror-gitlab/app/views/dashboard/_snippets_head.html.haml
2023-05-27 22:25:52 +05:30

8 lines
437 B
Text

.page-title-holder.d-flex.align-items-center
%h1.page-title.gl-font-size-h-display= _('Snippets')
.page-title-controls.gl-display-flex.gl-align-items-center.gl-gap-5
= link_to _("Explore snippets"), explore_snippets_path
- if can?(current_user, :create_snippet)
= render Pajamas::ButtonComponent.new(href: new_snippet_path, variant: :confirm, button_options: { title: _("New snippet") }) do
= _("New snippet")