add highlights and fix cfp in splashpage

This commit is contained in:
Stella Rouzi 2014-12-08 18:08:21 +02:00 committed by Stella
parent 8e25338436
commit ecfc348ea8
17 changed files with 111 additions and 32 deletions

View file

@ -25,6 +25,19 @@
- @event_types.each do |type|
%li= link_to type.title, admin_conference_event_path(@conference.short_title, @event, :event_type_id => type.id) ,
:method => :put, :event_type_id => type.id
%tr
%td
%b Highlight
%td
= link_to "#{@event.is_highlight}".capitalize,
admin_conference_event_path(@conference.short_title,
@event,
is_highlight: !@event.is_highlight),
method: :put, is_highlight: !@event.is_highlight
- if @event.is_highlight
(the event is as a highlight and will appear in the splashpage)
- else
(mark as true to make the event a highlight that appears in the splashpage)
%tr
%td
%b State