Point to dsa association images

This commit is contained in:
mcbloch 2020-08-23 00:06:03 +02:00
parent e16656cff8
commit 799f21f9c8
5 changed files with 9 additions and 6 deletions

View file

@ -1,5 +1,5 @@
---
titel: Massacantus
naam: Massacantus
konvent: mcantus
---
konvent: massacantus
---

View file

@ -2,7 +2,7 @@
titel: Temp
naam: Temp
tags: tem,p
konvent: tk
konvent: TempConvent
bestuur:
- functie: Voorzitter
naam: /tmp

View file

@ -1,5 +1,5 @@
<div class="details-container details-logo">
<img src="/assets/logos/<%= item[:logo] %>" alt="logo"> </img>
<img src="https://dsa.ugent.be/verenigingen/details/<%= abbreviation(item) %>/logo?size=huge" alt="<%= item[:naam] %>">
</div>
<div class="details-container details-contact">
<% if item[:deelname_link] %>
@ -51,4 +51,4 @@
</div>
<% end %>
</div>
<% end %>
<% end %>

View file

@ -9,7 +9,7 @@
<h1> Konventen en projecten </h1>
<ul>
<% for konvent in konvents %>
<%= "<img src=/assets/konventen/" ++ konvent.tr(" ", "_") ++ ".png alt=" ++ konvent %>
<img src="https://dsa.ugent.be/verenigingen/details/<%= konvent.tr(" ", "_") %>/logo?size=medium" alt="<%= konvent %>">
<li> <%= link_to(konvent, "/konventen/"++konvent.tr(" ", "_")++".html") %> </li>
<% end %>
</ul>

View file

@ -19,4 +19,7 @@ module VerenigingenHelper
"themas" => x[:themas]
}}.to_a
end
def abbreviation(item)
item.identifier.without_ext.split('/')[2]
end
end