blob: 68457ab33f73be93bdb9d677312a0b1f9f728eec (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
- @hide_top_links = true
- page_title _("Snippets")
- header_title _("Snippets"), dashboard_snippets_path
- 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 }
= render partial: 'shared/snippets/list', locals: { link_project: true }
- else
= render 'shared/empty_states/snippets', button_path: button_path
|