should work but can't test because of error in detail.erb which I can't seem to find.

This commit is contained in:
Arthur Deruytter 2020-02-28 01:55:01 +01:00
parent c148b0d9d4
commit 234f4d40f1
4 changed files with 6 additions and 4 deletions

View file

@ -2,8 +2,8 @@
titel: ESN
naam: Erasmus Student Network
themas:
- diversiteit
- internationaal
- naam: diversiteit
- naam: internationaal
konvent: IK
bestuur:
- functie: someone

View file

@ -2,7 +2,7 @@
titel: Hayaga
naam: Hayaga
themas:
- diversiteit
- naam: diversiteit
konvent:
bestuur:
- functie: Voorzitter

View file

@ -6,4 +6,6 @@ konvent: TK
bestuur:
- functie: Voorzitter
naam: /tmp
themas:
- naam: thema1
---

View file

@ -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