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.

124 lines
3.2 KiB

- set_orga_meta
- if @orga.kind
%em.fa{ class: "fa-#{@orga.kind.icon}",
title: Kind.human_attribute_name("name_#{}") }
= title
= image_tag @orga.url + '/favicon.ico', alt: '', class: :favicon
- if controller.controller_name == 'orgas' && controller.action_name == 'show'
= t '.links'
9 years ago
= link_to orgas_path(q: params[:q], page: params[:page]),
class: :back do
= Orga.model_name.human.pluralize
= link_to events_path tag: do
= link_to events_path format: :rss, tag: do
= link_to events_path format: :ics, tag: do
= link_to maps_path tag: do
= link_to maps_path format: :json, tag: do
= t '.actions'
= link_to edit_orga_path @orga do
= t '.edit'
- if user_signed_in?
= link_to cancel_orga_path @orga do
= t '.cancel'
%h3= t '.description'
= description sanitize @orga.description,
tags: %w(p h1 h2 h3 h4 br table tr th td ul ol li a strong b em i img),
attributes: %w(href src width height style)
- if
= Orga.human_attribute_name :city
- if @orga.department.present?
= Orga.human_attribute_name :department
%dd= @orga.department
- if @orga.region.present?
= Orga.human_attribute_name :region
%dd= @orga.region
- if @orga.url.present?
= Orga.human_attribute_name :url
%dd= link_to @orga.url, @orga.url
- if @orga.feed.present?
= Orga.human_attribute_name :feed
%dd= link_to @orga.feed, @orga.feed
- if
= Event.human_attribute_name :contact
%dd= mail_to, nil,
encode: (request.format == 'text/html' ? :javascript : nil),
replace_at: ' CHEZ ', replace_dot: ' POINT '
- if @orga.tags?
= Event.human_attribute_name :tags
%dd= @orga.tags
= Orga.human_attribute_name :active
%dd= t
- if @orga.updated_at
= Orga.human_attribute_name :updated_at
%dd= l @orga.updated_at.to_date, format: :long
- if @events_future && @events_future.any?
%dt= t '.future'
%dd= t '.count', count: @events_future.count
- if @events_future && @events_past.any?
%dt= t '.past'
%dd= t '.count', count: @events_past.count
.events#map{ title: @orga.name_as_tag,
data: { url: maps_path(format: :json, tag: @orga.name_as_tag,
future: false) } }