Sha256: 7f274838923701a0981e43593cd400292f8d129d513b3a37645d22cf875d2e00

Contents?: true

Size: 1006 Bytes

Versions: 3

Compression:

Stored size: 1006 Bytes

Contents

<% page_title "Tracks" %>

<% cache "tracks,event_#{@event.id},admin_#{admin?}" do %>
<div class="tracks_text">
  <%= simple_format @event.tracks_text.try(:html_safe) %>
  <%= link_to "Edit", edit_manage_event_path(@event, :jump_to => :tracks_text), :class => "editable" if admin? %>
</div>

<% for track in @tracks %>
  <h3 class='track block <%= track_css_class(track) %>'><%= link_to h(track.title), track_path(track) %></h3>
  <span class="description"><%= display_textile_for track.description %></span>

  <% if admin? %>
    <div class='record-controls'>
    <%= link_to 'Edit', edit_track_path(track), :class => "editable" %>
    <%= link_to 'Destroy', track_path(track), :data => { :confirm => %{Destroy track "#{track.title}"?} }, :method => :delete, :class => "deletable" %>
    </div>
  <% end %>
<% end %>

<div>
<%= link_to 'New track', new_track_path, :class => "addable" if admin? %>
<%= link_to 'Back to proposals', event_proposals_path(@event), :class => "cancelable" %>
</div>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
open_conference_ware-1.0.0.pre4 app/views/open_conference_ware/tracks/index.html.erb
open_conference_ware-1.0.0.pre3 app/views/open_conference_ware/tracks/index.html.erb
open_conference_ware-1.0.0.pre2 app/views/open_conference_ware/tracks/index.html.erb