The organisations listed along events is now limited to active organisations. Refs #43

This commit is contained in:
echarp 2016-01-08 11:23:25 +01:00
parent 89c5329c29
commit 4ee87241df
2 changed files with 3 additions and 4 deletions

View File

@ -15,15 +15,13 @@
%em.fa.fa-users %em.fa.fa-users
= t '.orga-list' = t '.orga-list'
%ul.fa-ul %ul.fa-ul
- @event.region.orgas.each do |orga| - @event.region.orgas.select(&:active).each do |orga|
%li %li
= link_to orga do = link_to orga do
- if orga.kind - if orga.kind
%em.fa.fa-li{ class: "fa-#{orga.kind.icon}", %em.fa.fa-li{ class: "fa-#{orga.kind.icon}",
title: Kind.human_attribute_name("name_#{orga.kind.name}") } title: Kind.human_attribute_name("name_#{orga.kind.name}") }
= orga.name = orga.name
(#{orga.department})
= link_to orga.url do
= image_tag orga.url + '/favicon.ico', alt: '', class: :favicon = image_tag orga.url + '/favicon.ico', alt: '', class: :favicon
%h1 %h1

View File

@ -5,6 +5,7 @@
#{Orga.human_attribute_name(:department).concat(':').ljust 12 } #{@orga.department} #{Orga.human_attribute_name(:department).concat(':').ljust 12 } #{@orga.department}
#{Orga.human_attribute_name(:region).concat(':').ljust 12 } #{@orga.region} #{Orga.human_attribute_name(:region).concat(':').ljust 12 } #{@orga.region}
#{Orga.human_attribute_name(:url).concat(':').ljust 12 } #{@orga.url} #{Orga.human_attribute_name(:url).concat(':').ljust 12 } #{@orga.url}
#{Orga.human_attribute_name(:diaspora).concat(':').ljust 12 } #{@orga.diaspora}
#{Orga.human_attribute_name(:feed).concat(':').ljust 12 } #{@orga.feed} #{Orga.human_attribute_name(:feed).concat(':').ljust 12 } #{@orga.feed}
#{Orga.human_attribute_name(:contact).concat(':').ljust 12 } #{@orga.contact} #{Orga.human_attribute_name(:contact).concat(':').ljust 12 } #{@orga.contact}
#{Orga.human_attribute_name(:submitter).concat(':').ljust 12 } #{@orga.submitter} #{Orga.human_attribute_name(:submitter).concat(':').ljust 12 } #{@orga.submitter}