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

13 lines
470 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">
<%= make_some(truncate(item.compiled_content)) %>
</p>
</div>
</div>