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

9 lines
437 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
2023-05-27 22:25:52 +05:30
.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")