debian-mirror-gitlab/app/views/dashboard/snippets/index.html.haml

12 lines
514 B
Text
Raw Normal View History

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?
2020-03-13 15:44:24 +05:30
= 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