2019-04-12 07:59:24 -04:00
|
|
|
.page-title-holder.d-flex.align-items-center
|
2018-10-06 10:21:38 -04:00
|
|
|
%h1.page-title= _('Snippets')
|
|
|
|
|
2019-02-22 07:12:36 -05:00
|
|
|
- if current_user && current_user.snippets.any? || @snippets.any?
|
2018-10-06 10:21:38 -04:00
|
|
|
.page-title-controls
|
2019-02-22 07:12:36 -05:00
|
|
|
= link_to _("New snippet"), new_snippet_path, class: "btn btn-success", title: _("New snippet")
|
2018-10-06 10:21:38 -04:00
|
|
|
|
2016-12-07 17:03:00 -05:00
|
|
|
.top-area
|
2018-04-19 23:34:20 -04:00
|
|
|
%ul.nav-links.nav.nav-tabs
|
2016-12-07 17:03:00 -05: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 16:48:41 -05:00
|
|
|
Your snippets
|
2016-12-07 17:03:00 -05:00
|
|
|
= nav_link(page: explore_snippets_path) do
|
|
|
|
= link_to explore_snippets_path, title: 'Explore snippets', data: {placement: 'right'} do
|
2018-01-15 16:48:41 -05:00
|
|
|
Explore snippets
|