2015-02-15 17:10:17 +01:00
|
|
|
- set_orga_meta
|
2014-08-06 14:47:47 +02:00
|
|
|
|
2014-10-13 22:50:59 +02:00
|
|
|
= render 'search'
|
|
|
|
|
2014-07-29 00:00:13 +02:00
|
|
|
%h2
|
2015-02-15 17:10:17 +01:00
|
|
|
= image_tag @orga.url + '/favicon.ico', alt: '', class: :favicon
|
|
|
|
= title @orga.name
|
2014-07-29 00:00:13 +02:00
|
|
|
|
2014-10-29 11:42:07 +01:00
|
|
|
%nav
|
2015-02-15 17:10:17 +01:00
|
|
|
= link_to orgas_path(q: params[:q], page: params[:page]), class: :back do
|
2014-10-29 11:42:07 +01:00
|
|
|
%em.fa.fa-arrow-left
|
2015-02-15 17:10:17 +01:00
|
|
|
= Orga.model_name.human.pluralize
|
2014-10-29 11:42:07 +01:00
|
|
|
\/
|
2015-02-15 17:10:17 +01:00
|
|
|
= link_to events_path tag: @orga.name do
|
2014-10-31 14:24:40 +01:00
|
|
|
%em.fa.fa-calendar
|
|
|
|
Agenda
|
|
|
|
\/
|
2015-02-15 17:10:17 +01:00
|
|
|
= link_to events_path format: :rss, tag: @orga.name do
|
2014-10-29 11:42:07 +01:00
|
|
|
%em.fa.fa-rss
|
2014-10-31 14:24:40 +01:00
|
|
|
RSS
|
2014-10-29 11:42:07 +01:00
|
|
|
\/
|
2015-02-15 17:10:17 +01:00
|
|
|
= link_to events_path format: :ics, tag: @orga.name do
|
2014-10-29 11:42:07 +01:00
|
|
|
%em.fa.fa-th-list
|
2014-10-31 14:24:40 +01:00
|
|
|
iCal
|
2014-10-29 11:42:07 +01:00
|
|
|
\/
|
2015-02-15 17:10:17 +01:00
|
|
|
= link_to maps_path tag: @orga.name do
|
2014-10-29 11:42:07 +01:00
|
|
|
%em.fa.fa-map-marker
|
2014-10-31 14:24:40 +01:00
|
|
|
OpenStreetMap
|
|
|
|
\/
|
2015-02-15 17:10:17 +01:00
|
|
|
= link_to maps_path format: :json, tag: @orga.name do
|
2014-10-31 14:24:40 +01:00
|
|
|
%em.fa.fa-dot-circle-o
|
|
|
|
GeoJSON
|
2014-07-27 01:50:22 +02:00
|
|
|
|
|
|
|
%dl
|
2015-02-15 17:10:17 +01:00
|
|
|
- if @orga.city.present?
|
|
|
|
%dt= Orga.human_attribute_name :city
|
|
|
|
%dd= @orga.city
|
|
|
|
- if @orga.department.present?
|
|
|
|
%dt= Orga.human_attribute_name :department
|
|
|
|
%dd= @orga.department
|
|
|
|
- if @orga.region.present?
|
|
|
|
%dt= Orga.human_attribute_name :region
|
|
|
|
%dd= @orga.region
|
|
|
|
- if @orga.url.present?
|
|
|
|
%dt= Orga.human_attribute_name :url
|
|
|
|
%dd= link_to @orga.url, @orga.url
|
2014-07-27 01:50:22 +02:00
|
|
|
|
2015-02-15 17:10:17 +01:00
|
|
|
%iframe{ src: @orga.url, width: '1280', height: '300', frameborder: 'none',
|
|
|
|
allowTransparency: 'true' }
|
2014-10-29 11:42:07 +01:00
|
|
|
|
2014-10-13 22:50:59 +02:00
|
|
|
- if @events_future.any? || @events_past.any?
|
|
|
|
%fieldset
|
|
|
|
%legend
|
|
|
|
%em.fa.fa-calendar
|
|
|
|
= Event.model_name.human.pluralize
|
2014-10-31 14:24:40 +01:00
|
|
|
|
2014-10-29 11:42:07 +01:00
|
|
|
- if @events_future.any?
|
2015-02-15 15:50:47 +01:00
|
|
|
%h3= raw t 'future', count: @events_future.count
|
2014-10-29 11:42:07 +01:00
|
|
|
%ul.fa-ul
|
|
|
|
- @events_future.order('start_time asc').each do |event|
|
|
|
|
%li
|
|
|
|
= link_to event do
|
|
|
|
- if event.locality?
|
|
|
|
%em.locality.fa-li.fa.fa-globe(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_1'}")
|
|
|
|
- else
|
|
|
|
%em.locality.fa-li.fa.fa-shield(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_0'}")
|
|
|
|
%em.city= event.city
|
|
|
|
= event.title
|
2014-10-31 14:24:40 +01:00
|
|
|
.date= display_date event
|
2014-10-29 11:42:07 +01:00
|
|
|
|
|
|
|
- if @events_past.any?
|
2015-02-15 15:50:47 +01:00
|
|
|
%h3= raw t 'past', count: @events_past.count
|
2014-10-29 11:42:07 +01:00
|
|
|
%ul.fa-ul
|
|
|
|
- @events_past.order('start_time desc').each do |event|
|
|
|
|
%li
|
|
|
|
= link_to event do
|
|
|
|
- if event.locality?
|
|
|
|
%em.locality.fa-li.fa.fa-globe(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_1'}")
|
|
|
|
- else
|
|
|
|
%em.locality.fa-li.fa.fa-shield(title="#{Event.human_attribute_name :locality} #{t 'attributes.locality_0'}")
|
|
|
|
%em.city= event.city
|
|
|
|
= event.title
|
2014-10-31 14:24:40 +01:00
|
|
|
.date= display_date event
|
2014-10-29 11:42:07 +01:00
|
|
|
|
2015-02-15 17:10:17 +01:00
|
|
|
.events#map{ data: { url: maps_path(format: :json, tag: @orga.name) } }
|