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.

61 lines
2.0 KiB

= title t '.title'
= render 'search'
= render 'types'
%th.name(colspan='2')= sort_link @search, :name
%th.city= sort_link @search, :city
%th.department= sort_link @search, :department
%th.region= sort_link @search,
:region_name, Orga.human_attribute_name(:region)
%th.updated_at= sort_link @search,
- @orgas.each do |orga|
%tr{ class: orga.active ? 'active' : 'inactive' }
- if orga.kind
%em.fa{ class: "fa-#{orga.kind.icon}",
title: Kind.human_attribute_name("name_#{orga.kind.name}") }
= orga.name
= render partial: '/orgas/favicon', locals: { orga: orga }
%td.city= orga.city
%td.department= orga.department
%td.region= orga.region
- if orga.updated_at.present?
= l orga.updated_at.to_date
%td.tags{ title: orga.tag_list }
- if orga.tags.count > 1
- elsif orga.tags.count.positive?
%td.url{ title: Orga.human_attribute_name(:url) }
- if orga.url.present?
= link_to orga.url do
%td.diaspora{ title: Orga.human_attribute_name(:diaspora) + '*' }
- if orga.diaspora.present?
= link_to orga.diaspora do
%td.feed{ title: Orga.human_attribute_name(:feed) }
- if orga.feed.present?
= link_to orga.feed do
%td.view{ title: t('.view') }
= link_to orga_path orga, q: params[:q].permit, page: params[:page] do
%td.edit{ title: t('.edit') }
- if orga.secret.nil? || user_signed_in?
= link_to edit_orga_path orga do
%th(colspan='12')= paginate @orgas