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.
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.

95 lines
2.8 KiB

- orga_meta @orga
- if @orga.kind
%em.fa{ class: "fa-#{@orga.kind.icon}",
title: Kind.human_attribute_name("name_#{@orga.kind.name}") }
= title @orga.name
= render partial: '/orgas/favicon', locals: { orga: @orga }
= render 'aside' if [controller_name, action_name] == %w[orgas show]
- if @orga.place_name.present?
%span.place_name= @orga.place_name
- if @orga.address.present?
%span.address= @orga.address
3 years ago
- if @orga.city.present?
%span.city= @orga.city
= t @orga.region.code.present? ? @orga.region.code : @orga.region.name,
scope: :countries, default: @orga.region.name
- if @orga.latitude && @orga.longitude
.orga#map{ data: { url: maps_path(format: :json).to_s,
latitude: @orga.latitude.to_s, longitude: @orga.longitude.to_s } }
= 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 sub sup span],
attributes: %w[href src width height style title]
= t '.infos'
- if @orga.department.present?
= Orga.human_attribute_name :department
%dd= @orga.department
- if @orga.url.present?
= Orga.human_attribute_name :url
3 years ago
%dd= link_to @orga.url
- if @orga.diaspora.present?
= Orga.human_attribute_name :diaspora
%dd= link_to @orga.diaspora, @orga.diaspora
- if @orga.feed.present?
= Orga.human_attribute_name :feed
%dd= link_to @orga.feed, @orga.feed
- if @orga.contact.present?
= 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 @orga.tags.any?
= Event.human_attribute_name :tags
- @orga.tags.each do |tag|
= link_to tag, tag_path(tag.name), rel: :tag
= Orga.human_attribute_name :active
%dd= t @orga.active.to_s
- 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?
= t '.future'
= link_to tag_path @orga.name_as_tag do
= t '.count', count: @events_future.count
- if @events_future && @events_past.any?
= t '.past'
= link_to tag_path @orga.name_as_tag do
= t '.count', count: @events_past.count