Fix image function

This commit is contained in:
mcbloch 2020-08-29 16:01:18 +02:00
parent 8412978117
commit cb285c2f1e

View file

@ -51,9 +51,8 @@ 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],
@ -62,7 +61,6 @@ module VerenigingenHelper
"themas" => x[:themas]
} }.to_a.shuffle[0..amount]
end
end
def image_tag(item)
"<img src='#{ image_url item }' alt='#{ item[:name] } logo' />"