2019-07-31 22:56:46 +05:30
|
|
|
.page-title-holder.d-flex.align-items-center
|
2018-12-13 13:39:08 +05:30
|
|
|
%h1.page-title= _('Snippets')
|
|
|
|
|
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-09 13:42:32 +05:30
|
|
|
- if can?(current_user, :create_snippet)
|
2021-01-29 00:20:46 +05:30
|
|
|
= link_to _("New snippet"), new_snippet_path, class: "gl-button btn btn-success", title: _("New snippet")
|
2018-12-13 13:39:08 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.top-area
|
2018-11-08 19:23:39 +05:30
|
|
|
%ul.nav-links.nav.nav-tabs
|
2017-08-17 22:00:37 +05:30
|
|
|
= nav_link(page: dashboard_snippets_path, html_options: {class: 'home'}) do
|
|
|
|
= link_to dashboard_snippets_path, title: 'Your snippets', data: {placement: 'right'} do
|
2018-03-17 18:26:18 +05:30
|
|
|
Your snippets
|
2017-08-17 22:00:37 +05:30
|
|
|
= nav_link(page: explore_snippets_path) do
|
|
|
|
= link_to explore_snippets_path, title: 'Explore snippets', data: {placement: 'right'} do
|
2018-03-17 18:26:18 +05:30
|
|
|
Explore snippets
|