2019-04-12 11:59:24 +00:00
|
|
|
.page-title-holder.d-flex.align-items-center
|
2018-10-06 14:21:38 +00:00
|
|
|
%h1.page-title= _('Snippets')
|
|
|
|
|
2019-02-22 12:12:36 +00:00
|
|
|
- if current_user && current_user.snippets.any? || @snippets.any?
|
2018-10-06 14:21:38 +00:00
|
|
|
.page-title-controls
|
2020-01-23 12:08:38 +00:00
|
|
|
- if can?(current_user, :create_snippet)
|
2019-12-17 18:07:48 +00:00
|
|
|
= link_to _("New snippet"), new_snippet_path, class: "btn btn-success", title: _("New snippet")
|
2018-10-06 14:21:38 +00:00
|
|
|
|
2016-12-07 22:03:00 +00:00
|
|
|
.top-area
|
2018-04-20 03:34:20 +00:00
|
|
|
%ul.nav-links.nav.nav-tabs
|
2016-12-07 22:03:00 +00:00
|
|
|
= nav_link(page: dashboard_snippets_path, html_options: {class: 'home'}) do
|
|
|
|
= link_to dashboard_snippets_path, title: 'Your snippets', data: {placement: 'right'} do
|
2018-01-15 21:48:41 +00:00
|
|
|
Your snippets
|
2016-12-07 22:03:00 +00:00
|
|
|
= nav_link(page: explore_snippets_path) do
|
|
|
|
= link_to explore_snippets_path, title: 'Explore snippets', data: {placement: 'right'} do
|
2018-01-15 21:48:41 +00:00
|
|
|
Explore snippets
|