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-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-07-27 01:50:22 +02:00
|
|
|
|
2015-02-28 17:28:05 +01:00
|
|
|
%fieldset.orga
|
|
|
|
%aside
|
|
|
|
%h1
|
|
|
|
%em.fa.fa-link
|
|
|
|
= t '.links'
|
2014-07-27 01:50:22 +02:00
|
|
|
|
2015-02-28 17:28:05 +01:00
|
|
|
%ul.fa-ul
|
|
|
|
%li
|
|
|
|
= link_to events_path tag: @orga.name do
|
|
|
|
%em.fa.fa-li.fa-calendar
|
|
|
|
Agenda
|
2014-10-29 11:42:07 +01:00
|
|
|
|
2015-02-28 17:28:05 +01:00
|
|
|
%li
|
|
|
|
= link_to events_path format: :rss, tag: @orga.name do
|
|
|
|
%em.fa.fa-li.fa-rss
|
|
|
|
RSS
|
2014-10-31 14:24:40 +01:00
|
|
|
|
2015-02-28 17:28:05 +01:00
|
|
|
%li
|
|
|
|
= link_to events_path format: :ics, tag: @orga.name do
|
|
|
|
%em.fa.fa-li.fa-th-list
|
|
|
|
iCal
|
|
|
|
|
|
|
|
%li
|
|
|
|
= link_to maps_path tag: @orga.name do
|
|
|
|
%em.fa.fa-li.fa-map-marker
|
|
|
|
OpenStreetMap
|
|
|
|
|
|
|
|
%li
|
|
|
|
= link_to maps_path format: :json, tag: @orga.name do
|
|
|
|
%em.fa.fa-li.fa-dot-circle-o
|
|
|
|
GeoJSON
|
2014-10-29 11:42:07 +01:00
|
|
|
|
2015-02-28 17:28:05 +01:00
|
|
|
- if user_signed_in?
|
|
|
|
%h1
|
|
|
|
%em.fa.fa-wrench
|
|
|
|
= t '.actions'
|
|
|
|
%h2
|
|
|
|
= link_to edit_orga_path @orga do
|
|
|
|
%em.fa.fa-lg.fa-pencil
|
|
|
|
= t '.edit'
|
|
|
|
|
|
|
|
%h2
|
|
|
|
- if @orga.kind
|
|
|
|
%em.fa{ class: "fa-#{@orga.kind.icon}",
|
|
|
|
title: Kind.human_attribute_name("name_#{@orga.kind.name}") }
|
|
|
|
= title @orga.name
|
|
|
|
= image_tag @orga.url + '/favicon.ico', alt: '', class: :favicon
|
|
|
|
|
|
|
|
%dl
|
|
|
|
- if @orga.city.present?
|
|
|
|
%dt
|
|
|
|
%em.fa.fa-compress
|
|
|
|
= 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
|
|
|
|
%em.fa.fa-shield
|
|
|
|
= Orga.human_attribute_name :region
|
|
|
|
%dd= @orga.region
|
|
|
|
- if @orga.url.present?
|
|
|
|
%dt
|
|
|
|
%em.fa.fa-external-link
|
|
|
|
= Orga.human_attribute_name :url
|
|
|
|
%dd= link_to @orga.url, @orga.url
|
|
|
|
- if @orga.feed.present?
|
|
|
|
%dt
|
|
|
|
%em.fa.fa-rss
|
|
|
|
= Orga.human_attribute_name :feed
|
|
|
|
%dd= link_to @orga.feed, @orga.feed
|
|
|
|
- if @orga.contact.present?
|
|
|
|
%dt
|
|
|
|
%em.fa.fa-envelope
|
|
|
|
= Event.human_attribute_name :contact
|
|
|
|
%dd= mail_to @orga.contact, nil,
|
|
|
|
encode: (request.format == 'text/html' ? :javascript : nil),
|
|
|
|
replace_at: ' CHEZ ', replace_dot: ' POINT '
|
|
|
|
|
|
|
|
- if @events_future.any?
|
|
|
|
%dt= t '.future'
|
|
|
|
%dd= t '.count', count: @events_future.count
|
2014-10-29 11:42:07 +01:00
|
|
|
- if @events_past.any?
|
2015-02-28 17:28:05 +01:00
|
|
|
%dt= t '.past'
|
|
|
|
%dd= t '.count', count: @events_past.count
|
2014-10-29 11:42:07 +01:00
|
|
|
|
2015-02-28 17:28:05 +01:00
|
|
|
.events#map{ data: { url: maps_path(format: :json, tag: @orga.name,
|
|
|
|
future: false) } }
|