should work but can't test because of error in detail.erb which I can't seem to find.
This commit is contained in:
parent
c148b0d9d4
commit
234f4d40f1
|
@ -2,8 +2,8 @@
|
|||
titel: ESN
|
||||
naam: Erasmus Student Network
|
||||
themas:
|
||||
- diversiteit
|
||||
- internationaal
|
||||
- naam: diversiteit
|
||||
- naam: internationaal
|
||||
konvent: IK
|
||||
bestuur:
|
||||
- functie: someone
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
titel: Hayaga
|
||||
naam: Hayaga
|
||||
themas:
|
||||
- diversiteit
|
||||
- naam: diversiteit
|
||||
konvent:
|
||||
bestuur:
|
||||
- functie: Voorzitter
|
||||
|
|
|
@ -6,4 +6,6 @@ konvent: TK
|
|||
bestuur:
|
||||
- functie: Voorzitter
|
||||
naam: /tmp
|
||||
themas:
|
||||
- naam: thema1
|
||||
---
|
||||
|
|
|
@ -14,7 +14,7 @@ module VerenigingenLists
|
|||
# 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
|
||||
@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
|
||||
|
|
Loading…
Reference in a new issue