_snippets_head.html.haml 652 Bytes
Newer Older
1 2 3
.page-title-holder
  %h1.page-title= _('Snippets')

4
  - if current_user && current_user.snippets.any? || @snippets.any?
5
    .page-title-controls
6
      = link_to _("New snippet"), new_snippet_path, class: "btn btn-success", title: _("New snippet")
7

8
.top-area
9
  %ul.nav-links.nav.nav-tabs
10 11
    = nav_link(page: dashboard_snippets_path, html_options: {class: 'home'}) do
      = link_to dashboard_snippets_path, title: 'Your snippets', data: {placement: 'right'} do
12
        Your snippets
13 14
    = nav_link(page: explore_snippets_path) do
      = link_to explore_snippets_path, title: 'Explore snippets', data: {placement: 'right'} do
15
        Explore snippets