durfdoen-2.0/layouts/partials/pretty_link.erb

14 lines
478 B
Text
Raw Normal View History

2020-09-10 00:28:10 +02:00
<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">
2020-09-10 13:27:02 +02:00
<%= item[:titel] || item[:naam] %>
2020-09-10 00:28:10 +02:00
</h3>
<p class="link__text">
<%= text_segment(item.compiled_content) %>
2020-09-10 00:28:10 +02:00
</p>
</div>
</div>