diff --git a/layouts/verenigingen.erb b/layouts/verenigingen.erb index 7664996..2663da1 100644 --- a/layouts/verenigingen.erb +++ b/layouts/verenigingen.erb @@ -3,7 +3,7 @@

Thema's

@@ -12,7 +12,7 @@

Konventen en projecten

diff --git a/lib/helpers/verenigingen.rb b/lib/helpers/verenigingen.rb index 63f8608..72db7e0 100644 --- a/lib/helpers/verenigingen.rb +++ b/lib/helpers/verenigingen.rb @@ -51,20 +51,18 @@ module VerenigingenHelper else item[:image] end - def abbreviation(item) - item.identifier.without_ext.split('/').last - end - def verenigingen_random(amount) - @items.find_all("**/verenigingen/*").map{|x| { - "titel" => x[:titel], - "naam" => x[:naam], - "konvent" => x[:konvent], - "themas" => x[:themas] - }}.to_a.shuffle[0..amount] - end + end + + def verenigingen_random(amount) + @items.find_all("**/verenigingen/*").map { |x| { + "titel" => x[:titel], + "naam" => x[:naam], + "konvent" => x[:konvent], + "themas" => x[:themas] + } }.to_a.shuffle[0..amount] end def image_tag(item) - "#{ item[:name] } logo" + "#{ item[:naam] } logo" end end