Implements program section for unscheduled events

close #610
This commit is contained in:
chrisbr 2015-03-09 15:31:06 +01:00
parent 0894d9ec29
commit 232cc249d4
11 changed files with 193 additions and 147 deletions

View file

@ -0,0 +1,19 @@
<h1 class="text-center">Program for <%= @conference.title %></h1>
<% @conference.events.confirmed.each do |event| %>
<div>
<h3>
<%= link_to event.title, conference_proposal_path(@conference.short_title, event.id) %>
<br>
<small>
<%= event.subtitle %>
</small>
</h3>
<h4>
presented by <%= event.speaker_names %>
</h4>
<p>
<%= truncate(event.abstract, :length => 400) -%>
<%= link_to 'more', conference_proposal_path(@conference.short_title, event.id) if event.abstract.length > 400 %>
</p>
</div>
<% end %>