durfdoen-2.0/lib/helpers/verenigingen.rb
Robbe Van Herck 8a90f41038 Fix links
2020-02-28 13:26:02 +01:00

14 lines
No EOL
494 B
Ruby

# frozen_string_literal: true
# Helpers for verenigingen
module VerenigingenHelper
# Returns every navigable item
# A navigable item contains the :navigable attribute
# Optionally contains an order attribute, determining the order in the navbar
def themes
@items.find_all("**/verenigingen/*").map{|x| x[:themas]}.flatten.uniq.compact.map{|x| x[:naam]}
end
def konvents
@items.find_all("**/verenigingen/*").map{|x| x[:konvent]}.uniq.compact
end
end