Shows commercial in admin/events#show and links to admin namespace

This commit is contained in:
Stella Rouzi 2017-03-03 12:43:59 +02:00
parent acc4cc3aef
commit 1772e13523

View file

@ -10,6 +10,8 @@
%span.label.label-danger{style: 'border-radius: 1em;'}
- progress_status = @event.progress_status
= progress_status.reject{ |_key, value| value || value.nil? }.length
%li
= link_to 'Commercials', '#proposal-commercials', 'data-toggle' => 'tab'
.tab-content
#proposal-content.tab-pane.active
@ -66,23 +68,25 @@
%td{'class'=>class_for_todo(progress_status['registered'])}
%span{'class'=>[icon_for_todo(progress_status['registered']), 'fa-lg']}
%tr
%td= link_to 'Fill out submitter biography', edit_user_path(@event.submitter)
%td= link_to 'Fill out submitter biography', edit_admin_user_path(@event.submitter)
%td{'class'=>class_for_todo(progress_status['biography'])}
%span{'class'=>[icon_for_todo(progress_status['biography']), 'fa-lg']}
%tr
%td= link_to 'Add a subtitle', edit_conference_program_proposal_path(@event.program.conference.short_title, @event)
%td= link_to 'Add a subtitle', edit_admin_conference_program_event_path(@event.program.conference.short_title, @event)
%td{'class'=>class_for_todo(progress_status['subtitle'])}
%span{'class'=>[icon_for_todo(progress_status['subtitle']), 'fa-lg']}
%tr
%td= link_to 'Add a commercial', edit_conference_program_proposal_path(@event.program.conference.short_title, @event, anchor: 'commercials-content')
%td= link_to 'Add a commercial', edit_admin_conference_program_event_path(@event.program.conference.short_title, @event, anchor: 'commercials-content')
%td{'class'=>class_for_todo(progress_status['commercials'])}
%span{'class'=>[icon_for_todo(progress_status['commercials']), 'fa-lg']}
- unless progress_status['track'].nil?
%tr
%td= link_to 'Add a track', edit_conference_program_proposal_path(@event.program.conference.short_title, @event)
%td= link_to 'Add a track', edit_admin_conference_program_event_path(@event.program.conference.short_title, @event)
%td{'class'=>class_for_todo(progress_status['track'])}
%span{'class'=>[icon_for_todo(progress_status['track']), 'fa-lg']}
%tr
%td= link_to 'Add a difficulty level', edit_conference_program_proposal_path(@event.program.conference.short_title, @event)
%td= link_to 'Add a difficulty level', edit_admin_conference_program_event_path(@event.program.conference.short_title, @event)
%td{'class'=>class_for_todo(progress_status['difficulty_level'])}
%span{'class'=>[icon_for_todo(progress_status['difficulty_level']), 'fa-lg']}
#proposal-commercials.tab-pane
= render partial: 'shared/media_items', locals: { commercials: @event.commercials }