Tweak events table on mobile

This commit is contained in:
Petko Bordjukov 2016-10-08 21:19:42 +03:00
parent 8d4e28a336
commit 47043f9e4e
2 changed files with 7 additions and 2 deletions

View File

@ -6,6 +6,8 @@ tr
- if event.subtitle.present? - if event.subtitle.present?
dt = Event.human_attribute_name :subtitle dt = Event.human_attribute_name :subtitle
dd = event.subtitle dd = event.subtitle
dt.visible-sm.visible-xs = Event.human_attribute_name :participants
dd.visible-sm.visible-xs = participant_names_or_emails(event).join(', ')
dt = EventType.model_name.human.mb_chars.titleize dt = EventType.model_name.human.mb_chars.titleize
dd = event.event_type.name dd = event.event_type.name
dt = Event.human_attribute_name :track dt = Event.human_attribute_name :track
@ -13,7 +15,7 @@ tr
dt = Event.human_attribute_name :language dt = Event.human_attribute_name :language
dd = t("locales.#{event.language}") dd = t("locales.#{event.language}")
td td.visible-md.visible-lg.visible-xl
= participant_names_or_emails(event).join(', ') = participant_names_or_emails(event).join(', ')
td.action td.action
.dropdown .dropdown

View File

@ -74,9 +74,12 @@
thead thead
tr tr
th = Event.model_name.human.mb_chars.titleize th = Event.model_name.human.mb_chars.titleize
th = Event.human_attribute_name(:user) th.visible-md.visible-lg.visible-xl = Event.human_attribute_name(:participants)
th.action th.action
= Event.human_attribute_name(:status) = Event.human_attribute_name(:status)
th.actions th.actions
tbody tbody
= render(partial: 'event', collection: @events) || render(partial: 'no_records') = render(partial: 'event', collection: @events) || render(partial: 'no_records')
.panel-footer.text-right
= link_to management_conference_events_path(current_conference, filters: @filters, format: 'csv'), class: 'btn btn-info'
= icon :download, t('.export')