durfdoen-2.0/layouts/detail.erb

55 lines
2.1 KiB
Text
Raw Normal View History

2020-09-17 20:14:53 +02:00
<div class="detail-body">
<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>
2020-09-17 20:14:53 +02:00
<h2><%= item[:naam] %></h2>
2020-09-18 17:28:25 +02:00
<div class="detail_title_themas">
<% for thema in item.fetch(: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
</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] %><a href="<%= "mailto:" if is_email item[:contact] %><%= item[:contact] %>"><%= item[:contact] %></a><%end%>
2020-09-18 15:16:45 +02:00
<% 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%>
</div>
</div>
<div class="details-container details-photo">
<div class="showcase-container">
<% if item[:showcase] %>
<% for showcase_img in item[:showcase] %>
<div class="showcase-image">
<img src="<%= showcase_img[:photo]%>" alt="showcase img"></img>
</div>
<% end %>
<% end %>
</div>
</div>
<% 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 %>
<% end %>
2020-09-17 20:14:53 +02:00
</div>
<% end %>