2017-09-10 17:25:29 +05:30
|
|
|
- @hide_top_links = true
|
2020-07-28 23:09:34 +05:30
|
|
|
- page_title _("Snippets")
|
|
|
|
- header_title _("Snippets"), dashboard_snippets_path
|
2020-03-13 15:44:24 +05:30
|
|
|
- button_path = new_snippet_path if can?(current_user, :create_snippet)
|
2015-09-25 12:07:36 +05:30
|
|
|
|
|
|
|
= render 'dashboard/snippets_head'
|
2019-07-07 11:18:12 +05:30
|
|
|
- if current_user.snippets.exists?
|
2023-05-27 22:25:52 +05:30
|
|
|
.top-area= render partial: 'snippets/snippets_scope_menu', locals: { include_private: true, counts: @snippet_counts }
|
2019-07-07 11:18:12 +05:30
|
|
|
= render partial: 'shared/snippets/list', locals: { link_project: true }
|
|
|
|
- else
|
2020-01-01 13:55:28 +05:30
|
|
|
= render 'shared/empty_states/snippets', button_path: button_path
|