2020-09-17 20:14:53 +02:00
|
|
|
<div class="detail-body">
|
|
|
|
<div class="detail_title">
|
2020-09-18 16:23:26 +02:00
|
|
|
<a target="_blank" href="<%= item[:website] %>"><img src="<%= image_url(item, size="large") %>" alt="<%= item[:naam] %>" width=auto height=auto></a>
|
2020-09-17 20:14:53 +02:00
|
|
|
<h2><%= item[:naam] %></h2>
|
|
|
|
<% if item[:themas] %>
|
2020-09-18 15:16:45 +02:00
|
|
|
<div class="detail_title_themas">
|
|
|
|
<% for thema in item[:themas] %>
|
|
|
|
<div class="vereniging_thema">
|
|
|
|
<a href="/themas/<%= thema %>.html">
|
|
|
|
<%= @items["/assets/themas_icon/"+thema+".svg"].compiled_content %>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2020-09-17 20:14:53 +02:00
|
|
|
<% end %>
|
|
|
|
</div>
|
2020-09-18 03:11:11 +02:00
|
|
|
<div class="details-contact">
|
|
|
|
<%if item[:deelname_link] || item[:contact] || item[:website]%>
|
|
|
|
<% if item[:deelname_link] %><a href="<%= item[:deelname_link] %>"><%= item[:deelname_link] %></a><% end %>
|
|
|
|
<div class="contact-container">
|
2020-09-18 15:16:45 +02:00
|
|
|
<% if item[:contact] %><a href="<%= item[:contact] %>"><%= item[:contact] %></a><%end%>
|
|
|
|
<% if item[:website] %><a href="<%= item[:website] %>"><%= item[:website] %></a><%end%>
|
2020-09-18 03:11:11 +02:00
|
|
|
</div><%end%>
|
|
|
|
<% if item[:social] %>
|
|
|
|
<div class="social-container">
|
|
|
|
<ul>
|
|
|
|
<% for social in item[:social] %>
|
2020-09-18 15:16:45 +02:00
|
|
|
<a class="social" href="<%= social[:link] %>"><img src="/assets/social/<%= social[:platform].downcase %>_small.png"></a>
|
2020-09-18 03:11:11 +02:00
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
2020-09-17 20:14:53 +02:00
|
|
|
<div class="detail-content">
|
|
|
|
<%= yield%>
|
2020-02-27 23:03:14 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="details-container details-photo">
|
|
|
|
<div class="showcase-container">
|
2020-02-28 02:15:51 +01:00
|
|
|
<% if item[:showcase] %>
|
2020-02-27 23:03:14 +01:00
|
|
|
<% for showcase_img in item[:showcase] %>
|
|
|
|
<div class="showcase-image">
|
|
|
|
<img src="<%= showcase_img[:photo]%>" alt="showcase img"></img>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2020-02-28 02:15:51 +01:00
|
|
|
<% end %>
|
2020-02-27 23:03:14 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-15 20:25:58 +02:00
|
|
|
<% if item.path.include? "konventen" %>
|
2020-09-17 20:14:53 +02:00
|
|
|
<div class="fancy_link_container">
|
|
|
|
<% verenigingen_voor_konvent(item[:id]).sort_by{ |x| x[:naam] }.each do |vereniging| %>
|
|
|
|
<%= render '/partials/pretty_link.*', :item => vereniging %>
|
2020-09-15 20:25:58 +02:00
|
|
|
<% end %>
|
2020-09-17 20:14:53 +02:00
|
|
|
</div>
|
2020-09-15 20:25:58 +02:00
|
|
|
<% end %>
|