agenda-libre-ruby/app/views/orgas/_orga.html.haml

28 lines
829 B
Plaintext
Raw Normal View History

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