Fix image function

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

View file

@ -51,17 +51,15 @@ 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)