2015-07-14 21:00:02 +03:00
|
|
|
.row
|
|
|
|
.col-lg-12
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
h2.panel-title= Event.model_name.human(count: 2).mb_chars.capitalize
|
|
|
|
|
|
|
|
.panel-body
|
|
|
|
table.table.table-striped.table-hover.record-table
|
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th = Event.human_attribute_name :title
|
|
|
|
th = Event.human_attribute_name :subtitle
|
2015-07-26 14:55:01 +03:00
|
|
|
th = Event.human_attribute_name :user
|
2015-07-14 21:00:02 +03:00
|
|
|
th = Event.human_attribute_name :length
|
|
|
|
th = Event.human_attribute_name :language
|
|
|
|
th.actions
|
|
|
|
tbody
|
|
|
|
- @events.each do |event|
|
2015-07-26 14:55:01 +03:00
|
|
|
- proposer = event.proposer
|
2015-07-26 15:58:08 +03:00
|
|
|
- proposer_profile = event.proposer_profile
|
2015-07-26 14:55:01 +03:00
|
|
|
|
2015-07-14 21:00:02 +03:00
|
|
|
tr
|
|
|
|
td= event.title
|
|
|
|
td= event.subtitle
|
2015-08-05 15:05:31 +03:00
|
|
|
td
|
|
|
|
- if proposer_profile
|
|
|
|
= link_to proposer_profile.name, [:management, @conference, proposer_profile]
|
|
|
|
- else
|
|
|
|
| No profile for user #{proposer.email}
|
|
|
|
|
2015-07-14 21:00:02 +03:00
|
|
|
td #{event.length} minutes
|
|
|
|
td= event.language
|
|
|
|
|
|
|
|
td.actions
|
|
|
|
div.btn-group.btn-group-sm
|
2015-07-19 11:44:44 +03:00
|
|
|
= action_buttons(@conference, event, [:show, :edit, :destroy])
|