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