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,17 +2,15 @@
<div class="detail_title"> <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> <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> <h2><%= item[:naam] %></h2>
<% if item[:themas] %> <div class="detail_title_themas">
<div class="detail_title_themas"> <% for thema in item.fetch(:themas, []) %>
<% for thema in item[:themas] %> <div class="vereniging_thema">
<div class="vereniging_thema"> <a href="/themas/<%= thema %>.html">
<a href="/themas/<%= thema %>.html"> <%= @items["/assets/themas_icon/"+thema+".svg"].compiled_content %>
<%= @items["/assets/themas_icon/"+thema+".svg"].compiled_content %> </a>
</a> </div>
</div> <% end %>
<% end %> </div>
</div>
<% end %>
</div> </div>
<div class="details-contact"> <div class="details-contact">
<%if item[:deelname_link] || item[:contact] || item[:website]%> <%if item[:deelname_link] || item[:contact] || item[:website]%>