Sha256: c5ec9dcab3e80a15c73af248077d48628c95d36b5cec3f95db46e359ccf61a7e
Contents?: true
Size: 627 Bytes
Versions: 342
Compression:
Stored size: 627 Bytes
Contents
<div class="posts"> <% if @posts && @posts.count > 0 %> <ul> <% @posts.each do |p| %> <li> <figure><a href="/posts/<%= p.id %>"><img src="<%= p.image.url(:thumb) %>" /></a></figure> <h5><strong><%= raw a[:title] %></strong></h5> <p class="h-space-mvt"><%= a[:created_at].strftime("%m/%d/%Y") %></p> <p class="h-space-mbt"><%= truncate(strip_tags(a[:body]), :length => 175) %></p> <a class="m-btn-red h-space-mts" href="/news/<%= a.id %>">Read More</a> </li> <% end %> </ul> <% else %> <p>There are no posts right now.</p> <% end %> </div>
Version data entries
342 entries across 342 versions & 1 rubygems