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
<% for thema in themas %>
-
+ <%= image_tag thema %>
- <%= link_to(thema[:naam], thema) %>
<% end %>
@@ -12,7 +12,7 @@
Konventen en projecten
<% for item in konventen_and_projecten %>
-
+ <%= image_tag item %>
- <%= link_to(item[:naam], item) %>
<% end %>
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)
- ""
+ ""
end
end