Introduce Program to include cfp/rooms/tracks/events/event_types/difficulty_levels
This commit is contained in:
parent
028b82fda8
commit
444356fbc7
117 changed files with 1812 additions and 905 deletions
|
|
@ -53,33 +53,33 @@
|
|||
%span.fa.fa-road
|
||||
Venue
|
||||
%ul
|
||||
- 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.program.rooms.build
|
||||
%li{:class=> active_nav_li(admin_conference_program_rooms_path(@conference.short_title))}
|
||||
= link_to 'Rooms', admin_conference_program_rooms_path(@conference.short_title)
|
||||
- if can? :update, @conference.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.events.build
|
||||
%li
|
||||
%a
|
||||
%li{:class=> "#{active_nav_li(admin_conference_program_path(@conference.short_title))}"}
|
||||
= link_to admin_conference_program_path(@conference.short_title) do
|
||||
%span.fa.fa-calendar
|
||||
Program
|
||||
%ul
|
||||
%li{:class=> active_nav_li(admin_conference_events_path(@conference.short_title))}
|
||||
= link_to 'Events', admin_conference_events_path(@conference.short_title)
|
||||
- if can? :update, CallForPaper.new(conference_id: @conference.id)
|
||||
%li{:class=> "#{active_nav_li(admin_conference_call_for_paper_path(@conference.short_title))}"}
|
||||
= link_to 'Call for Papers', admin_conference_call_for_paper_path(@conference.short_title)
|
||||
- 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, @conference.events.build
|
||||
- if can? :update, Cfp.new(program_id: @conference.program.id)
|
||||
%li{:class=> active_nav_li(admin_conference_program_cfp_path(@conference.short_title))}
|
||||
= link_to 'Call for Papers', admin_conference_program_cfp_path(@conference.short_title)
|
||||
- if can? :update, @conference.program.events.build
|
||||
%li{:class=> active_nav_li(admin_conference_program_events_path(@conference.short_title))}
|
||||
= link_to 'Events', admin_conference_program_events_path(@conference.short_title)
|
||||
- if can? :update, @conference.program.tracks.build
|
||||
%li{:class=> active_nav_li(admin_conference_program_tracks_path(@conference.short_title))}
|
||||
= link_to 'Tracks', admin_conference_program_tracks_path(@conference.short_title)
|
||||
- if can? :update, @conference.program.event_types.build
|
||||
%li{:class=> active_nav_li(admin_conference_program_event_types_path(@conference.short_title))}
|
||||
= link_to 'Event Types', admin_conference_program_event_types_path(@conference.short_title)
|
||||
- if can? :update, @conference.program.difficulty_levels.build, conference_id: @conference.id
|
||||
%li{:class=> active_nav_li(admin_conference_program_difficulty_levels_path(@conference.short_title))}
|
||||
= link_to 'Difficulty Levels', admin_conference_program_difficulty_levels_path(@conference.short_title)
|
||||
- if can? :update, @conference.program.events.build
|
||||
%li{class: active_nav_li(admin_conference_schedule_path(@conference.short_title))}
|
||||
= link_to 'Schedule', admin_conference_schedule_path(@conference.short_title), target: '_blank'
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
- if unread_notifications(current_user).length > 0
|
||||
%li.dropdown-header Last 5 Comments for:
|
||||
- unread_notifications(current_user).limit(5).group_by{ |comment| comment.commentable}.each do |event, comments|
|
||||
%li= link_to("#{event.title}(#{comments.count})", admin_conference_event_path(event.conference.short_title, event.id))
|
||||
%li= link_to("#{event.title}(#{comments.count})", admin_conference_program_event_path(event.program.conference.short_title, event.id))
|
||||
%li.divider
|
||||
%li= link_to "See all unread Comments (#{unread_notifications(current_user).length})", admin_comments_path
|
||||
%li= link_to 'See all Comments', admin_comments_path(anchor: 'all_comments')
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@
|
|||
= link_to(edit_user_path(current_user.id)) do
|
||||
%span.fa.fa-user
|
||||
Edit Profile
|
||||
-if @conference and @conference.call_for_paper
|
||||
-if @conference and @conference.program
|
||||
%li
|
||||
= link_to(conference_proposal_index_path(@conference.short_title)) do
|
||||
= link_to(conference_program_proposal_index_path(@conference.short_title)) do
|
||||
%span.fa.fa-comment
|
||||
My Submissions
|
||||
%li
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue