durfdoen-2.0/layouts/partials/pretty_link.erb
2020-09-10 12:13:46 +02:00

13 lines
463 B
Text

<div class="link" onclick="window.location.href = '<%= item.path %>'">
<div class="link__img">
<img src="https://dsa.ugent.be/api/verenigingen/<%= abbreviation(item) %>/logo?size=small" alt="<%= item[:naam] %>">
</div>
<div class="link__content">
<h3 class="link__title">
<%= item[:titel] %>
</h3>
<p class="link__text">
<%= text_segment(item.compiled_content) %>
</p>
</div>
</div>