agenda-libre-ruby/app/views/events/show.text.haml

20 lines
1001 B
Plaintext

==============================================================================
!= display_attr @event, :title
!= display_attr @event, :start_time, l(@event.start_time, format: :at)
!= display_attr @event, :end_time, l(@event.end_time, format: :at)
!= display_attr @event, :place_name
!= display_attr @event, :address
!= display_attr @event, :city
!= display_attr @event, :region, t(@event.region.code.present? ? @event.region.code : @event.region.name, scope: :countries, default: @event.region.name)
!= display_attr @event, :locality, t("attributes.locality_#{@event.locality}")
!= display_attr @event, :url
- if @event.contact.present?
!= display_attr @event, :contact
!= display_attr @event, :tags, @event.tag_list
- if @event.repeat&.positive?
= display_attr @event, :repeat
= display_attr @event, :rule, t(@event.rule, scope: 'activerecord.attributes.event.rule_values')
\
!= to_markdown @event.description, 78
==============================================================================