Fix erb for vereniging without bestuur

This commit is contained in:
Jan-Pieter Baert 2020-02-27 21:20:57 +01:00
parent 5df4ee926d
commit efa8531395
No known key found for this signature in database
GPG key ID: B19186932178234A
2 changed files with 4 additions and 2 deletions

View file

@ -3,7 +3,7 @@
<title> Durf Doen! - <%= item[:titel] || item.identifier.without_ext.split('/').last %> </title> <title> Durf Doen! - <%= item[:titel] || item.identifier.without_ext.split('/').last %> </title>
<link rel="stylesheet" href="/stylesheets/main.css"> <link rel="stylesheet" href="/stylesheets/main.css">
<link rel="shortcut icon" href="/assets/favicon.png"> <link rel="shortcut icon" href="/assets/favicon.png">
<%= raw item[:head] %> <%# <%= raw item[:head] %>
</head> </head>
<body> <body>
<%= render '/partials/navbar.*' %> <%= render '/partials/navbar.*' %>

View file

@ -1,8 +1,10 @@
<h1> <%= item[:naam] %> </h1> <h1> <%= item[:naam] %> </h1>
<h2> Het bestuur: </h2> <h2> Het bestuur: </h2>
<ul> <ul>
<% if item[:bestuur] %>
<% for persoon in item[:bestuur] %> <% for persoon in item[:bestuur] %>
<li> <%= persoon[:functie] %>: <%= persoon[:naam] %> </li> <li> <%= persoon[:functie] %>: <%= persoon[:naam] %> </li>
<% end %> <% end %>
<% end %>
</ul> </ul>
<%= yield %> <%= yield %>