2020-01-16 20:19:52 +01:00
|
|
|
%tr{ class: orga.active ? 'active' : 'inactive' }
|
|
|
|
%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
|
|
|
|
%td.tags{ title: orga.tag_list }
|
|
|
|
- if orga.tags.count > 1
|
|
|
|
%em.fa.fa-tags
|
|
|
|
- elsif orga.tags.count.positive?
|
|
|
|
%em.fa.fa-tag
|
|
|
|
%td.view{ title: t('.view') }
|
|
|
|
= link_to orga_path orga, q: params[:q].permit, page: params[:page] do
|
|
|
|
%em.fa.fa-arrow-circle-right
|
|
|
|
|