From 2acbf8a5e2c9c22cd858024578a8f6c405f36c0b Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Fri, 18 Sep 2020 17:28:25 +0200 Subject: [PATCH] always render detail_title_themas div --- layouts/detail.erb | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/layouts/detail.erb b/layouts/detail.erb index 668ea9a..72b6fe1 100644 --- a/layouts/detail.erb +++ b/layouts/detail.erb @@ -2,17 +2,15 @@
" alt="<%= item[:naam] %>" width=auto height=auto>

<%= item[:naam] %>

- <% if item[:themas] %> -
- <% for thema in item[:themas] %> - - <% end %> -
- <% end %> +
+ <% for thema in item.fetch(:themas, []) %> + + <% end %> +
<%if item[:deelname_link] || item[:contact] || item[:website]%>