Sha256: 865667fffab17e04fbe16739e8657ac5966aa00128785bb7e974cff38fc76862
Contents?: true
Size: 914 Bytes
Versions: 600
Compression:
Stored size: 914 Bytes
Contents
<div class="posts"> <% if @posts && @posts.count > 0 %> <ul> <% @posts.each do |p| %> <li class='clearfix'> <% if p.image && !p.image.url.include?('placehold.it') %> <figure><a href="/posts/<%= p.id %>"><img src="<%= p.image.url(:thumb) %>" /></a></figure> <% end %> <h5><strong><%= raw p[:title] %></strong></h5> <p class="h-space-mvt"><%= p[:created_at].strftime("%m/%d/%Y") %></p> <p class="h-space-mbt"><%= raw Caboose.teaser_text(p[:body], 200) %></p> <a class="m-btn-red h-space-mts" href="/posts/<%= p.id %>">Read More</a> </li> <% end %> </ul> <% else %> <p>There are no posts right now.</p> <% end %> </div> <% content_for :caboose_css do %> <style type='text/css'> .posts li { min-height: 200px; } .posts li figure { float: right; margin: 0 0 20px 10px; } </style> <% end %>
Version data entries
600 entries across 600 versions & 1 rubygems