2014-05-23 13:01:23 +02:00
|
|
|
%ul.nav.nav-stacked.nav-pills.mySidebar
|
2014-05-22 18:19:07 +02:00
|
|
|
.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-cog
|
2014-05-23 14:19:57 +02:00
|
|
|
= @conference.short_title
|
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
|
2014-05-22 18:19:07 +02:00
|
|
|
%hr
|
2014-08-12 11:51:59 +03:00
|
|
|
- if can? :show, @conference
|
|
|
|
|
%li{:class=> "#{active_nav_li(admin_conference_path(@conference.short_title))} nav-header nav-header-bigger"}
|
|
|
|
|
= link_to(admin_conference_path(@conference.short_title)) do
|
|
|
|
|
%span.fa.fa-tachometer
|
|
|
|
|
Dashboard
|
2014-08-13 14:37:15 +03:00
|
|
|
- if can? :show, @conference
|
2014-08-12 11:51:59 +03:00
|
|
|
%li{:class=> "#{active_nav_li(edit_admin_conference_path(@conference.short_title))}"}
|
|
|
|
|
= link_to(edit_admin_conference_path(@conference.short_title)) do
|
|
|
|
|
%span.fa.fa-home
|
|
|
|
|
Basics
|
2014-08-14 11:37:30 +03:00
|
|
|
%ul
|
|
|
|
|
- if can? :update, Contact.new(conference_id: @conference.id)
|
2014-08-12 11:51:59 +03:00
|
|
|
%li{:class=> "#{active_nav_li(edit_admin_conference_contact_path(@conference.short_title))}"}
|
|
|
|
|
= link_to(edit_admin_conference_contact_path(@conference.short_title)) do
|
|
|
|
|
%span.fa.fa-envelope-o
|
|
|
|
|
Contact
|
2014-08-14 11:37:30 +03:00
|
|
|
- if can? :index, @conference.commercials.build
|
|
|
|
|
%li{:class=> "#{active_nav_li(admin_conference_commercials_path(@conference.short_title))}"}
|
|
|
|
|
= link_to(admin_conference_commercials_path(@conference.short_title)) do
|
|
|
|
|
%span.fa.fa-film
|
|
|
|
|
Commercials
|
|
|
|
|
- if can? :update, @conference.photos.build
|
|
|
|
|
%li{:class=> "#{active_nav_li(admin_conference_photos_path(@conference.short_title))}"}
|
|
|
|
|
= link_to(admin_conference_photos_path(@conference.short_title)) do
|
|
|
|
|
%span.fa.fa-picture-o
|
|
|
|
|
Photos
|
2014-08-18 14:33:02 +02:00
|
|
|
- if can? :update, @conference
|
|
|
|
|
%li{:class=> active_nav_li( admin_conference_registration_period_path (@conference.short_title))}
|
|
|
|
|
= link_to( admin_conference_registration_period_path (@conference.short_title)) do
|
|
|
|
|
%span.fa.fa-male
|
|
|
|
|
Registration Period
|
2014-08-12 11:51:59 +03:00
|
|
|
- if can? :update, @conference.events.build
|
|
|
|
|
%li{:class=> active_nav_li(admin_conference_events_path(@conference.short_title))}
|
|
|
|
|
= link_to(admin_conference_events_path(@conference.short_title)) do
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.fa.fa-comment
|
2014-08-12 11:51:59 +03:00
|
|
|
Events
|
|
|
|
|
- if can? :update, Registration.new(conference_id: @conference.id)
|
|
|
|
|
%li{:class=> active_nav_li(admin_conference_registrations_path(@conference.short_title))}
|
|
|
|
|
= link_to(admin_conference_registrations_path(@conference.short_title)) do
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.fa.fa-user
|
2014-08-12 11:51:59 +03:00
|
|
|
Registrations
|
|
|
|
|
- if can? :update, @conference.events.build
|
|
|
|
|
%li{class: active_nav_li(admin_conference_schedule_path(@conference.short_title))}
|
|
|
|
|
= link_to(admin_conference_schedule_path(@conference.short_title), target: '_blank') do
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.fa.fa-calendar
|
2014-08-12 11:51:59 +03:00
|
|
|
Schedule
|
|
|
|
|
- if can? :update, @conference
|
|
|
|
|
%li{class: active_nav_li(admin_conference_campaigns_path(@conference.short_title))}
|
|
|
|
|
= link_to(admin_conference_campaigns_path(@conference.short_title)) do
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.fa.fa-bullhorn
|
2014-08-12 11:51:59 +03:00
|
|
|
Campaigns
|
2014-05-22 18:19:07 +02:00
|
|
|
%hr
|
2014-08-12 11:51:59 +03:00
|
|
|
- if can? :update, @conference.targets.build
|
|
|
|
|
%li{:class=> "#{active_nav_li(admin_conference_targets_path(@conference.short_title))}"}
|
|
|
|
|
= link_to(admin_conference_targets_path(@conference.short_title)) do
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.fa.fa-flag
|
2014-08-12 11:51:59 +03:00
|
|
|
Targets
|
|
|
|
|
- if can? :index, @conference.venue
|
|
|
|
|
%li{:class=> "#{active_nav_li(admin_conference_venue_info_path(@conference.short_title))} myAccordion"}
|
|
|
|
|
= link_to(admin_conference_venue_info_path(@conference.short_title)) do
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.fa.fa-road
|
2014-08-12 11:51:59 +03:00
|
|
|
Venue
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.small.fa.fa-chevron-right
|
2014-08-12 11:51:59 +03:00
|
|
|
%ul.nav.nav-stacked.nav-pills.small.collapse.subNav
|
|
|
|
|
- if can? :update, @conference.rooms.build
|
|
|
|
|
%li{:class=> active_nav_li(admin_conference_rooms_path(@conference.short_title))}
|
|
|
|
|
= link_to 'Rooms', admin_conference_rooms_path(@conference.short_title)
|
|
|
|
|
- if can? :update, @conference.venue.lodgings.build
|
|
|
|
|
%li{ class: active_nav_li(admin_conference_lodgings_path(@conference.short_title)) }
|
|
|
|
|
= link_to 'Lodgings', admin_conference_lodgings_path(@conference.short_title)
|
|
|
|
|
- if can? :update, @conference.sponsorship_levels.build
|
|
|
|
|
%li{:class=> "#{active_nav_li(admin_conference_sponsorship_levels_path(@conference.short_title))} myAccordion" }
|
|
|
|
|
= link_to(admin_conference_sponsorship_levels_path(@conference.short_title)) do
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.fa.fa-star
|
2014-08-12 11:51:59 +03:00
|
|
|
Sponsorship
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.small.fa.fa-chevron-right
|
2014-08-12 11:51:59 +03:00
|
|
|
%ul.nav.nav-stacked.nav-pills.small.collapse.subNav
|
|
|
|
|
- if can? :update, @conference.sponsors.build
|
|
|
|
|
%li{:class=> active_nav_li(admin_conference_sponsors_path(@conference.short_title))}
|
|
|
|
|
= link_to 'Sponsors', admin_conference_sponsors_path(@conference.short_title)
|
2014-08-28 15:21:05 +02:00
|
|
|
- if can? :update, @conference.tickets.build
|
|
|
|
|
%li{ class: active_nav_li(admin_conference_tickets_path(@conference.short_title)) }
|
|
|
|
|
= link_to(admin_conference_tickets_path(@conference.short_title)) do
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.fa.fa-usd
|
2014-08-28 15:21:05 +02:00
|
|
|
Tickets
|
2014-08-12 11:51:59 +03:00
|
|
|
- if can? :update, @conference.email_settings
|
|
|
|
|
%li{:class=> active_nav_li(admin_conference_emails_path(@conference.short_title))}
|
|
|
|
|
= link_to(admin_conference_emails_path(@conference.short_title)) do
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.fa.fa-envelope
|
2014-08-12 11:51:59 +03:00
|
|
|
E-Mails
|
|
|
|
|
- if can? :update, CallForPapers.new(conference_id: @conference.id)
|
|
|
|
|
%li{:class=> "#{active_nav_li(admin_conference_callforpapers_path(@conference.short_title))} myAccordion"}
|
|
|
|
|
= link_to(admin_conference_callforpapers_path(@conference.short_title)) do
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.fa.fa-comment
|
2014-08-12 11:51:59 +03:00
|
|
|
Call for papers
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.small.fa.fa-chevron-right
|
2014-08-12 11:51:59 +03:00
|
|
|
%ul.nav.nav-stacked.nav-pills.small.collapse.subNav
|
|
|
|
|
- if can? :update, @conference.tracks.build
|
|
|
|
|
%li{:class=> active_nav_li(admin_conference_tracks_path(@conference.short_title))}
|
|
|
|
|
= link_to 'Tracks', admin_conference_tracks_path(@conference.short_title)
|
|
|
|
|
- if can? :update, @conference.event_types.build
|
|
|
|
|
%li{:class=> active_nav_li(admin_conference_event_types_path(@conference.short_title))}
|
|
|
|
|
= link_to 'Event types', admin_conference_event_types_path(@conference.short_title)
|
|
|
|
|
- if can? :update, @conference.difficulty_levels.build, conference_id: @conference.id
|
|
|
|
|
%li{:class=> active_nav_li(admin_conference_difficulty_levels_path(@conference.short_title))}
|
|
|
|
|
= link_to 'Difficulty levels', admin_conference_difficulty_levels_path(@conference.short_title)
|
|
|
|
|
- if can? :update, Question.new(conference_id: @conference.id)
|
2014-05-22 18:19:07 +02:00
|
|
|
%li{:class=> active_nav_li(admin_conference_questions_path(@conference.short_title))}
|
|
|
|
|
= link_to(admin_conference_questions_path(@conference.short_title)) do
|
2014-08-15 18:28:14 -07:00
|
|
|
%span.fa.fa-question
|
2014-05-22 18:19:07 +02:00
|
|
|
Questions
|
2014-08-12 11:51:59 +03:00
|
|
|
- if can? :manage, @conference
|
|
|
|
|
%li{:class=> active_nav_li(roles_admin_conference_path(@conference.short_title))}
|
|
|
|
|
= link_to 'Roles', roles_admin_conference_path(@conference.short_title)
|