2015-12-27 16:12:27 +01:00
|
|
|
= render 'search'
|
|
|
|
|
2015-02-15 17:10:17 +01:00
|
|
|
%h2
|
|
|
|
%em.fa.fa-users
|
2016-01-10 15:43:22 +01:00
|
|
|
= title t '.title'
|
2015-02-15 17:10:17 +01:00
|
|
|
|
2016-01-10 16:18:20 +01:00
|
|
|
= render 'types'
|
|
|
|
|
2015-02-15 17:10:17 +01:00
|
|
|
%table.list.autopagerize_page_element
|
|
|
|
%thead
|
2016-02-27 18:54:57 +01:00
|
|
|
%th
|
2016-01-07 22:20:09 +01:00
|
|
|
%th.name= sort_link @search, :name
|
|
|
|
%th.city= sort_link @search, :city
|
|
|
|
%th.department= sort_link @search, :department
|
2016-01-07 23:10:20 +01:00
|
|
|
%th.region= sort_link @search,
|
|
|
|
:region_name, Orga.human_attribute_name(:region)
|
2016-01-07 22:20:09 +01:00
|
|
|
%th.tags= sort_link @search, :tags, Orga.human_attribute_name(:tags)
|
2016-01-07 23:10:20 +01:00
|
|
|
%th.updated_at= sort_link @search,
|
|
|
|
:updated_at, Orga.human_attribute_name(:updated_at)
|
2016-02-27 18:54:57 +01:00
|
|
|
%th
|
|
|
|
%th
|
|
|
|
%th
|
2016-01-07 22:20:09 +01:00
|
|
|
%th.view/
|
|
|
|
%th.edit/
|
2015-02-15 17:10:17 +01:00
|
|
|
|
|
|
|
%tbody
|
|
|
|
- @orgas.each do |orga|
|
2015-12-27 17:09:07 +01:00
|
|
|
%tr{ class: orga.active ? 'active' : 'inactive' }
|
2016-02-27 18:54:57 +01:00
|
|
|
%td.kind
|
2015-02-28 17:28:05 +01:00
|
|
|
- if orga.kind
|
|
|
|
%em.fa{ class: "fa-#{orga.kind.icon}",
|
|
|
|
title: Kind.human_attribute_name("name_#{orga.kind.name}") }
|
2016-02-27 18:54:57 +01:00
|
|
|
%td.name
|
2015-02-28 17:28:05 +01:00
|
|
|
= orga.name
|
2015-02-15 17:10:17 +01:00
|
|
|
- if orga.url =~ /^http/
|
|
|
|
= image_tag orga.url + '/favicon.ico', alt: '', class: :favicon
|
2016-02-27 18:54:57 +01:00
|
|
|
%td.city= orga.city
|
|
|
|
%td.department= orga.department
|
|
|
|
%td.region= orga.region
|
2016-12-17 16:59:11 +01:00
|
|
|
%td.tags= orga.tag_list
|
2016-02-27 18:54:57 +01:00
|
|
|
%td.updated_at
|
2015-12-27 15:34:02 +01:00
|
|
|
- if orga.updated_at.present?
|
|
|
|
= l orga.updated_at.to_date
|
2016-02-27 18:54:57 +01:00
|
|
|
%td.url
|
2016-01-07 22:20:09 +01:00
|
|
|
- if orga.url.present?
|
|
|
|
= link_to orga.url do
|
2016-01-07 23:10:20 +01:00
|
|
|
%em.fa.fa-external-link{ title: Orga.human_attribute_name(:url) }
|
2016-02-27 18:54:57 +01:00
|
|
|
%td.diaspora
|
2016-01-07 22:20:09 +01:00
|
|
|
- if orga.diaspora.present?
|
|
|
|
= link_to orga.diaspora do
|
2016-01-07 23:10:20 +01:00
|
|
|
%em.fa.fa-bullhorn{ title: Orga.human_attribute_name(:diaspora) }
|
2016-02-27 18:54:57 +01:00
|
|
|
%td.feed
|
2016-01-07 22:20:09 +01:00
|
|
|
- if orga.feed.present?
|
|
|
|
= link_to orga.feed do
|
2016-01-07 23:10:20 +01:00
|
|
|
%em.fa.fa-rss{ title: Orga.human_attribute_name(:feed) }
|
2016-02-27 18:54:57 +01:00
|
|
|
%td.view
|
2017-11-11 12:44:09 +01:00
|
|
|
= link_to orga_path orga, q: params[:q].permit, page: params[:page] do
|
2015-12-27 15:34:02 +01:00
|
|
|
%em.fa.fa-eye
|
2016-02-27 18:54:57 +01:00
|
|
|
%td.edit
|
2016-01-26 15:09:33 +01:00
|
|
|
- if orga.secret.nil? || user_signed_in?
|
|
|
|
= link_to edit_orga_path orga do
|
|
|
|
%em.fa.fa-pencil
|
2015-02-15 17:10:17 +01:00
|
|
|
|
2016-01-10 14:41:20 +01:00
|
|
|
%tfoot
|
|
|
|
%tr
|
|
|
|
%th(colspan='12')= paginate @orgas
|