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

17 lines
589 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
= 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
.d-block.d-sm-none
 
= link_to _("New snippet"), new_snippet_path, class: "btn btn-success btn-block", title: _("New snippet")
- if current_user.snippets.exists?
= render partial: 'shared/snippets/list', locals: { link_project: true }
- else
= render 'shared/empty_states/snippets', button_path: new_snippet_path