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

14 lines
528 B
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- @hide_top_links = true
2015-09-25 12:07:36 +05:30
- page_title "Snippets"
- header_title "Snippets", dashboard_snippets_path
2020-01-01 13:55:28 +05:30
- button_path = new_snippet_path if can?(current_user, :create_personal_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?
= render partial: 'snippets/snippets_scope_menu', locals: { include_private: true }
2015-09-25 12:07:36 +05:30
2019-07-07 11:18:12 +05:30
- if current_user.snippets.exists?
= 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