2020-02-04 21:22:42 +01:00
|
|
|
%tr{ class: orga.active ? 'active' : 'inactive', title: orga.tag_list }
|
2020-01-16 20:19:52 +01:00
|
|
|
%td.kind
|
|
|
|
- if orga.kind
|
|
|
|
%em.fa{ class: "fa-#{orga.kind.icon}",
|
|
|
|
title: Kind.human_attribute_name("name_#{orga.kind.name}") }
|
|
|
|
%td.name
|
|
|
|
= orga.name
|
|
|
|
= render partial: '/orgas/favicon', locals: { orga: orga }
|
|
|
|
%td.city= orga.city
|
|
|
|
%td.region= orga.region
|
2020-01-16 21:08:48 +01:00
|
|
|
%td.flag= flag_icon orga.region.flag
|
2020-01-16 20:19:52 +01:00
|
|
|
%td.updated_at
|
|
|
|
- if orga.updated_at.present?
|
|
|
|
= l orga.updated_at.to_date
|
2020-02-04 21:22:42 +01:00
|
|
|
%td.tags
|
2020-01-16 20:19:52 +01:00
|
|
|
- if orga.tags.count > 1
|
|
|
|
%em.fa.fa-tags
|
|
|
|
- elsif orga.tags.count.positive?
|
|
|
|
%em.fa.fa-tag
|
2020-02-04 21:22:42 +01:00
|
|
|
%td.url
|
|
|
|
- if orga.url
|
|
|
|
= link_to orga.url, target: '_blank' do
|
|
|
|
%em.fa.fa-external-link-alt
|
2020-01-17 20:44:01 +01:00
|
|
|
%td.view
|
2020-01-16 20:19:52 +01:00
|
|
|
= link_to orga_path orga, q: params[:q].permit, page: params[:page] do
|
|
|
|
%em.fa.fa-arrow-circle-right
|
|
|
|
|