Display all events except the current one
This commit is contained in:
parent
085582f946
commit
741a357d22
|
@ -43,6 +43,7 @@
|
||||||
= t('.no_profile')
|
= t('.no_profile')
|
||||||
=< link_to icon(:plus, t('.create_profile')), new_management_conference_personal_profile_path(conference_id: @conference.id, user_id: speaker.id), class: ['btn', 'btn-primary', 'btn-xs']
|
=< link_to icon(:plus, t('.create_profile')), new_management_conference_personal_profile_path(conference_id: @conference.id, user_id: speaker.id), class: ['btn', 'btn-primary', 'btn-xs']
|
||||||
|
|
||||||
|
- if speaker.events_participated_in.where.not(id: @event.id).any?
|
||||||
h4 = t '.previous_event_propositions'
|
h4 = t '.previous_event_propositions'
|
||||||
table.table.table-striped.table-hover.record-table
|
table.table.table-striped.table-hover.record-table
|
||||||
thead
|
thead
|
||||||
|
@ -56,13 +57,13 @@
|
||||||
th
|
th
|
||||||
|
|
||||||
tbody
|
tbody
|
||||||
- speaker.events_participated_in.each do |event|
|
- speaker.events_participated_in.where.not(id: @event.id).order(created_at: :desc).each do |event|
|
||||||
tr
|
tr
|
||||||
td = event.title
|
td = event.title
|
||||||
td = event.conference.title
|
td = event.conference.title
|
||||||
td
|
td
|
||||||
span class="label label-lg label-#{proposition_status_class(@event.status)}"
|
span class="label label-lg label-#{proposition_status_class(event.status)}"
|
||||||
= icon(proposition_status_glyph(@event.status), t("activerecord.attributes.proposition.statuses.#{@event.status}"))
|
= icon(proposition_status_glyph(event.status), t("activerecord.attributes.proposition.statuses.#{@event.status}"))
|
||||||
|
|
||||||
td.actions
|
td.actions
|
||||||
.btn-group.btn-group-sm
|
.btn-group.btn-group-sm
|
||||||
|
|
Loading…
Reference in New Issue