Fix image function
This commit is contained in:
parent
8412978117
commit
cb285c2f1e
1 changed files with 9 additions and 11 deletions
|
@ -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' />"
|
||||
|
|
Loading…
Reference in a new issue