fix
This commit is contained in:
parent
02aae74ae4
commit
3559785257
1 changed files with 38 additions and 23 deletions
|
@ -1,25 +1,40 @@
|
|||
<h1> <%= item[:naam] %> </h1>
|
||||
<div class="details-container details-logo">
|
||||
<img src="https://dsa.ugent.be/api/verenigingen/<%= abbreviation(item) %>/logo?size=huge" alt="<%= item[:naam] %>">
|
||||
</div>
|
||||
<div class="details-container details-contact">
|
||||
<% if item[:deelname_link] %>
|
||||
<a href="<%= item[:deelname_link] %>"><%= item[:deelname_link] %></a>
|
||||
<% end %>
|
||||
<div class="contact-container">
|
||||
<p><a href="<%= item[:contact] %>"><%= item[:contact] %></a></p>
|
||||
<p><a href="<%= item[:website] %>"><%= item[:website] %></a></p>
|
||||
</div>
|
||||
<div class="social-container">
|
||||
<ul>
|
||||
<% if item[:social] %>
|
||||
<div class="detail-body">
|
||||
<div class="details-contact">
|
||||
<%if item[:deelname_link] || item[:contact] || item[:website]%>
|
||||
<h3>Contact</h3>
|
||||
<% if item[:deelname_link] %><a href="<%= item[:deelname_link] %>"><%= item[:deelname_link] %></a><% end %>
|
||||
<div class="contact-container">
|
||||
<% if item[:contact] %><p>Email-adres: <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">
|
||||
<h4>Sociale media</h4>
|
||||
<ul>
|
||||
<% for social in item[:social] %>
|
||||
<li class="social-<%= social[:platform] %>">
|
||||
<a href="<%= social[:link] %>"><%= social[:link] %></a>
|
||||
</li>
|
||||
<a class="social" href="<%= social[:link] %>">
|
||||
<img src="/assets/social/<%= social[:platform].downcase %>_small.png">
|
||||
</a>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="detail_title">
|
||||
<a target="_blank" href="<%= item[:website] %>"><img src="https://dsa.ugent.be/api/verenigingen/<%= abbreviation(item) %>/logo?size=small" alt="<%= item[:naam] %>"></a>
|
||||
<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>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="detail-content">
|
||||
<%= yield%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="details-container details-photo">
|
||||
|
@ -54,9 +69,9 @@
|
|||
</div>
|
||||
<% end %>
|
||||
<% if item.path.include? "konventen" %>
|
||||
<% for vereniging in verenigingen_voor_konvent(item[:id]) %>
|
||||
<div>
|
||||
<%= vereniging[:naam] %>
|
||||
</div>
|
||||
<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 %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue