2014-05-22 18:19:07 +02:00
|
|
|
%ul.nav.nav-pills.nav-stacked.mySidebar
|
|
|
|
|
.btn-group
|
|
|
|
|
%button{type: 'button', class: 'btn btn-default btn-link dropdown-toggle', 'data-toggle'=>'dropdown'}
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.fa.fa-home
|
2014-05-23 14:19:57 +02:00
|
|
|
All Conferences
|
2014-05-22 18:19:07 +02:00
|
|
|
%span.caret
|
|
|
|
|
%ul.dropdown-menu{role: 'menu'}
|
|
|
|
|
%li
|
|
|
|
|
= link_to(admin_conference_index_path) do
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.fa.fa-home
|
2014-05-23 14:19:57 +02:00
|
|
|
All Conferences
|
2014-05-22 18:19:07 +02:00
|
|
|
- @conferences.each do |conference|
|
2014-08-12 11:51:59 +03:00
|
|
|
- if can? :show, conference
|
|
|
|
|
%li
|
|
|
|
|
= link_to(admin_conference_path(conference.short_title)) do
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.fa.fa-cog
|
2014-08-12 11:51:59 +03:00
|
|
|
Manage
|
|
|
|
|
= conference.short_title
|
|
|
|
|
- if (current_user.is_admin) || (current_user.has_role? :organizer, :any)
|
2014-05-22 18:19:07 +02:00
|
|
|
%li
|
2014-08-12 11:51:59 +03:00
|
|
|
= link_to(new_admin_conference_path) do
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.fa.fa-plus
|
2014-08-12 11:51:59 +03:00
|
|
|
New Conference
|
|
|
|
|
- if can? :index, User
|
|
|
|
|
%hr
|
|
|
|
|
%li
|
|
|
|
|
= link_to(admin_users_path) do
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.fa.fa-user
|
2014-08-12 11:51:59 +03:00
|
|
|
Users
|