A calendar management project, for events and activities related to communities fighting for freedoms.
This can be related to software, art, data, hardware, content, commons, internet.
https://www.agendadulibre.org
This can be related to software, art, data, hardware, content, commons, internet.
https://www.agendadulibre.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.4 KiB
80 lines
2.4 KiB
- set_event_meta |
|
|
|
= render partial: '/tags/context', locals: { tags: @event.tag_list } |
|
|
|
%h2 |
|
- if @event.locality? |
|
%em.locality.fa.fa-globe{ title: t('attributes.locality_1') } |
|
- else |
|
%em.locality.fa.fa-shield-alt{ title: t('attributes.locality_0') } |
|
%em.city{ title: @event.full_address }= @event.city |
|
= title @event.title |
|
|
|
= render 'aside' if [controller_name, action_name] == %w[events show] |
|
|
|
%h3= t '.dateAndPlace' |
|
|
|
%p= display_date |
|
|
|
%p.full_address |
|
- if @event.place_name.present? |
|
%span= @event.place_name |
|
- if @event.address.present? |
|
%span= @event.address |
|
%span= link_to @event.city, |
|
"https://fr.wikipedia.org/wiki/#{url_encode @event.city}" |
|
%span= link_to @event.region.try(:name), |
|
"https://fr.wikipedia.org/wiki/#{url_encode @event.region.try :name}" |
|
|
|
- if @event.latitude && @event.longitude |
|
.event#map{ data: { url: maps_path(format: :json), |
|
latitude: @event.latitude, longitude: @event.longitude } } |
|
|
|
- elsif controller.action_name != 'show' |
|
%em.fa.fa-compress |
|
%em |
|
= raw t '.noMap' |
|
%a{ target: '_blank', |
|
href: 'https://osm.org/search?query=' + @event.full_address } |
|
%img(src='https://www.openstreetmap.org/assets/osm_logo.png' |
|
alt='OSM logo' width='22px') |
|
|
|
%h3= t '.description' |
|
.description |
|
= description sanitize @event.description, |
|
tags: %w[p h1 h2 h3 h4 br table tr th td ul ol li a strong b em i img sub sup span], |
|
attributes: %w[href src width height style title] |
|
|
|
%h3 |
|
%em.fa.fa-info-circle |
|
= t '.infos' |
|
- if @event.url.present? |
|
%p |
|
%em.fa.fa-external-link-alt |
|
%span.label= Event.human_attribute_name :url |
|
= link_to @event.url, @event.url.html_safe |
|
- if @event.contact.present? |
|
%p |
|
%em.fa.fa-envelope |
|
%span.label= Event.human_attribute_name :contact |
|
= mail_to @event.contact, nil, |
|
encode: (request.format == 'text/html' ? :javascript : nil), |
|
replace_at: ' CHEZ ', replace_dot: ' POINT ' |
|
|
|
- if @event.tags&.present? |
|
%p.tags |
|
%em.fa.fa-tags |
|
%span.label= Event.human_attribute_name :tags |
|
- @event.tags.each do |tag| |
|
= link_to tag, tag_path(tag.name), rel: :tag |
|
|
|
- if @event.repeat&.positive? && @event.rule |
|
%h3 |
|
%em.fa.fa-repeat |
|
= @event.schedule |
|
|
|
- if @event.moderated? |
|
%ul |
|
%li= link_to_unless_current @event.event || @event, @event.event || @event |
|
- (@event.event || @event).events.each do |e| |
|
%li= link_to_unless_current e, e
|
|
|