2020-09-17 20:14:53 +02:00
|
|
|
<div class="detail-body">
|
|
|
|
<div class="detail_title">
|
2020-09-18 00:16:35 +02:00
|
|
|
<a target="_blank" href="<%= item[:website] %>"><img src="<%= small_image_url(item) %>" alt="<%= item[:naam] %>" height=100></a>
|
2020-09-17 20:14:53 +02:00
|
|
|
<h2><%= item[:naam] %></h2>
|
|
|
|
<% if item[: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>
|
2020-02-28 02:15:51 +01:00
|
|
|
<% end %>
|
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">
|
|
|
|
<% if item[:contact] %><p>Email: <a href="<%= item[:contact] %>"><%= item[:contact] %></a></p><%end%>
|
|
|
|
<% if item[:website] %><p>Website: <a href="<%= item[:website] %>"><%= item[:website] %></a></p><%end%>
|
|
|
|
</div><%end%>
|
|
|
|
<% if item[:social] %>
|
|
|
|
<div class="social-container">
|
|
|
|
<ul>
|
|
|
|
<% for social in item[:social] %>
|
|
|
|
<a class="social" href="<%= social[:link] %>">
|
|
|
|
<img src="/assets/social/<%= social[:platform].downcase %>_small.png">
|
|
|
|
</a>
|
|
|
|
<% 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 %>
|