durfdoen-2.0/layouts/partials/pretty_link.erb

14 lines
436 B
Text
Raw Normal View History

2020-09-16 01:40:48 +02:00
<div class="link" onclick="window.location.href='<%= item.path %>'">
2020-09-10 00:28:10 +02:00
<div class="link__img">
2020-09-18 00:16:35 +02:00
<img src="<%= small_image_url(item) %>" alt="<%= item[:naam] %>" height=100>
2020-09-10 00:28:10 +02:00
</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>
2020-09-16 01:40:48 +02:00
</div>