.container .row .col-md-12.page-header %h1 Track requests for %span.notranslate = @conference.title - if @tracks.any? .row .col-md-12 %table.table.table-hover#tracks %thead %th Name %th Short name %th Description %th Color %th State %th Actions %tbody - @tracks.each do |track| %tr %td = link_to(conference_program_track_path(@conference.short_title, track)) do = track.name %td = track.short_name %td %p = truncate(track.description) %td %span.label{style: "background-color: #{track.color}; color: #{ contrast_color(track.color) }"} = track.color %td = track.state %td = link_to 'Edit', edit_conference_program_track_path(@conference.short_title, track), method: :get, class: 'btn btn-primary' .row .col-md-12 - if can? :create, @track = link_to "New Track request", new_conference_program_track_path(@conference.short_title), class: 'btn btn-success pull-right'