diff --git a/layouts/partials/pretty_link.erb b/layouts/partials/pretty_link.erb
index 336c9d4..bc51abc 100644
--- a/layouts/partials/pretty_link.erb
+++ b/layouts/partials/pretty_link.erb
@@ -1,6 +1,6 @@
-
+
" alt="<%= item[:naam] %>">
diff --git a/lib/helpers/verenigingen.rb b/lib/helpers/verenigingen.rb
index 93611ea..075d4fa 100644
--- a/lib/helpers/verenigingen.rb
+++ b/lib/helpers/verenigingen.rb
@@ -69,20 +69,16 @@ module VerenigingenHelper
@items.find_all("**/verenigingen/*") + @items.find_all("**/konventen/*")
end
- def image_url(item)
+ def image_url(item, size="medium")
if item[:logo].nil?
- "https://dsa.ugent.be/api/verenigingen/#{ abbreviation item }/logo?size=medium"
+ "https://dsa.ugent.be/api/verenigingen/#{ abbreviation item }/logo?size=#{ size }"
else
item[:logo]
end
end
def small_image_url(item)
- if item[:logo].nil?
- "https://dsa.ugent.be/api/verenigingen/#{ abbreviation item }/logo?size=small"
- else
- item[:logo]
- end
+ image_url(item, size="small")
end
def image_tag(item)