2019-06-25 22:27:24 +02:00
|
|
|
- orga_meta @orga
|
2014-08-06 14:47:47 +02:00
|
|
|
|
2015-07-25 18:32:27 +02:00
|
|
|
%h2
|
|
|
|
- if @orga.kind
|
|
|
|
%em.fa{ class: "fa-#{@orga.kind.icon}",
|
|
|
|
title: Kind.human_attribute_name("name_#{@orga.kind.name}") }
|
|
|
|
= title @orga.name
|
2019-02-27 13:56:45 +01:00
|
|
|
= render partial: '/orgas/favicon', locals: { orga: @orga }
|
2014-10-13 22:50:59 +02:00
|
|
|
|
2020-01-01 22:09:37 +01:00
|
|
|
= render 'aside' if [controller_name, action_name] == %w[orgas show]
|
2015-12-26 23:32:04 +01:00
|
|
|
|
2016-04-09 16:06:22 +02:00
|
|
|
%p.full_address
|
|
|
|
- if @orga.place_name.present?
|
2019-04-29 18:29:38 +02:00
|
|
|
%span.place_name= @orga.place_name
|
2016-04-09 16:06:22 +02:00
|
|
|
- if @orga.address.present?
|
2019-04-29 18:29:38 +02:00
|
|
|
%span.address= @orga.address
|
2020-01-01 23:12:42 +01:00
|
|
|
- if @orga.city.present?
|
|
|
|
%span.city= @orga.city
|
2019-04-29 18:29:38 +02:00
|
|
|
%span.region
|
|
|
|
= t @orga.region.code.present? ? @orga.region.code : @orga.region.name,
|
|
|
|
scope: :countries, default: @orga.region.name
|
2016-04-09 16:06:22 +02:00
|
|
|
|
|
|
|
- if @orga.latitude && @orga.longitude
|
2018-01-05 22:39:29 +01:00
|
|
|
.orga#map{ data: { url: maps_path(format: :json).to_s,
|
|
|
|
latitude: @orga.latitude.to_s, longitude: @orga.longitude.to_s } }
|
2016-04-09 16:06:22 +02:00
|
|
|
|
2015-12-26 23:32:04 +01:00
|
|
|
.description
|
|
|
|
= description sanitize @orga.description,
|
2018-01-01 17:52:33 +01:00
|
|
|
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]
|
2015-02-28 17:28:05 +01:00
|
|
|
|
2020-01-04 12:42:37 +01:00
|
|
|
%h3
|
|
|
|
%em.fa.fa-info-circle
|
|
|
|
= t '.infos'
|
2015-07-25 18:32:27 +02:00
|
|
|
%dl
|
|
|
|
- if @orga.department.present?
|
2018-03-18 15:33:48 +01:00
|
|
|
%dt.department
|
2015-12-26 23:32:04 +01:00
|
|
|
%em.fa.fa-puzzle-piece
|
|
|
|
= Orga.human_attribute_name :department
|
2015-07-25 18:32:27 +02:00
|
|
|
%dd= @orga.department
|
|
|
|
- if @orga.url.present?
|
2018-03-18 15:33:48 +01:00
|
|
|
%dt.url
|
2018-02-11 18:06:32 +01:00
|
|
|
%em.fa.fa-external-link-alt
|
2015-07-25 18:32:27 +02:00
|
|
|
= Orga.human_attribute_name :url
|
2020-01-02 20:05:20 +01:00
|
|
|
%dd= link_to @orga.url, @orga.url
|
2016-01-07 22:20:09 +01:00
|
|
|
- if @orga.diaspora.present?
|
2018-03-18 17:15:03 +01:00
|
|
|
%dt.diaspora<
|
2016-01-07 22:20:09 +01:00
|
|
|
= Orga.human_attribute_name :diaspora
|
2018-03-18 17:15:03 +01:00
|
|
|
%em.fa
|
2016-01-08 11:15:41 +01:00
|
|
|
%dd= link_to @orga.diaspora, @orga.diaspora
|
2015-07-25 18:32:27 +02:00
|
|
|
- if @orga.feed.present?
|
2018-03-18 15:33:48 +01:00
|
|
|
%dt.feed
|
2015-07-25 18:32:27 +02:00
|
|
|
%em.fa.fa-rss
|
|
|
|
= Orga.human_attribute_name :feed
|
|
|
|
%dd= link_to @orga.feed, @orga.feed
|
|
|
|
- if @orga.contact.present?
|
2018-03-18 15:33:48 +01:00
|
|
|
%dt.contact
|
2015-07-25 18:32:27 +02:00
|
|
|
%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 '
|
2020-01-04 12:42:37 +01:00
|
|
|
- if @orga.tags&.any?
|
2018-03-18 15:33:48 +01:00
|
|
|
%dt.tags
|
2016-01-04 00:49:52 +01:00
|
|
|
%em.fa.fa-tags
|
|
|
|
= Event.human_attribute_name :tags
|
2016-12-17 18:47:05 +01:00
|
|
|
%dd
|
|
|
|
- @orga.tags.each do |tag|
|
|
|
|
= link_to tag, tag_path(tag.name), rel: :tag
|
2018-03-18 15:33:48 +01:00
|
|
|
%dt.active
|
2015-12-26 23:32:04 +01:00
|
|
|
%em.fa.fa-heartbeat
|
|
|
|
= Orga.human_attribute_name :active
|
|
|
|
%dd= t @orga.active.to_s
|
2015-12-27 00:07:30 +01:00
|
|
|
- if @orga.updated_at
|
2018-03-18 15:33:48 +01:00
|
|
|
%dt.updated_at
|
2015-12-27 00:07:30 +01:00
|
|
|
%em.fa.fa-calendar
|
|
|
|
= Orga.human_attribute_name :updated_at
|
|
|
|
%dd= l @orga.updated_at.to_date, format: :long
|
2015-02-28 17:28:05 +01:00
|
|
|
|
2020-01-04 12:42:37 +01:00
|
|
|
- if @events_future&.any?
|
2018-03-18 15:33:48 +01:00
|
|
|
%dt.future
|
2016-10-19 14:31:00 +02:00
|
|
|
%em.fa.fa-forward
|
|
|
|
= t '.future'
|
|
|
|
%dd
|
|
|
|
= link_to tag_path @orga.name_as_tag do
|
|
|
|
= t '.count', count: @events_future.count
|
2015-07-25 18:32:27 +02:00
|
|
|
- if @events_future && @events_past.any?
|
2018-03-18 15:33:48 +01:00
|
|
|
%dt.past
|
2016-10-19 14:31:00 +02:00
|
|
|
%em.fa.fa-backward
|
|
|
|
= t '.past'
|
|
|
|
%dd
|
|
|
|
= link_to tag_path @orga.name_as_tag do
|
|
|
|
= t '.count', count: @events_past.count
|