diff options
Diffstat (limited to 'app/views/dashboard/snippets/index.html.haml')
-rw-r--r-- | app/views/dashboard/snippets/index.html.haml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/views/dashboard/snippets/index.html.haml b/app/views/dashboard/snippets/index.html.haml index 68457ab33f7..667ed617849 100644 --- a/app/views/dashboard/snippets/index.html.haml +++ b/app/views/dashboard/snippets/index.html.haml @@ -1,11 +1,9 @@ -- @hide_top_links = true -- page_title _("Snippets") -- header_title _("Snippets"), dashboard_snippets_path +- page_title _("Snippets") - button_path = new_snippet_path if can?(current_user, :create_snippet) = render 'dashboard/snippets_head' - if current_user.snippets.exists? - = render partial: 'snippets/snippets_scope_menu', locals: { include_private: true, counts: @snippet_counts } + .top-area= render partial: 'snippets/snippets_scope_menu', locals: { include_private: true, counts: @snippet_counts } = render partial: 'shared/snippets/list', locals: { link_project: true } - else = render 'shared/empty_states/snippets', button_path: button_path |