always render detail_title_themas div

This commit is contained in:
Ilion Beyst 2020-09-18 17:28:25 +02:00
parent 00092656ba
commit 2acbf8a5e2

View file

@ -2,9 +2,8 @@
<div class="detail_title">
<a target="_blank" href="<%= item[:website] %>"><img src="<%= image_url(item, size="large") %>" alt="<%= item[:naam] %>" width=auto height=auto></a>
<h2><%= item[:naam] %></h2>
<% if item[:themas] %>
<div class="detail_title_themas">
<% for thema in item[:themas] %>
<% for thema in item.fetch(:themas, []) %>
<div class="vereniging_thema">
<a href="/themas/<%= thema %>.html">
<%= @items["/assets/themas_icon/"+thema+".svg"].compiled_content %>
@ -12,7 +11,6 @@
</div>
<% end %>
</div>
<% end %>
</div>
<div class="details-contact">
<%if item[:deelname_link] || item[:contact] || item[:website]%>