app/views/records/posts/index.html.slim
- unless @news.nil? || @news.empty?
section.page-section.narrower.items-list.posts-list
- @news.each_with_index do |post, index|
article.post-item.items-list-group class=('painted' if index == 0)
div.item-column.column-2-3
= link_to records_post_path(post), title: post.title do
h3.post-title
= post.title
time.post-date datetime=post.published_at
= localize(post.published_at.to_date)
div.text-block.post-body
= raw(post.body)
div.item-column.column-1-3
= link_to records_post_path(post), title: post.title do
div.post-image style="background-image: url(#{post.image.url(:medium)})"
- if post.youtube_video.present?
div.post-with-video
i.fa.fa-play-circle-o.fa-4x
= paginate @news, left: 3, right: 3