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

Version Path
caboose-cms-0.5.68 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.67 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.66 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.64 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.63 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.62 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.61 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.60 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.59 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.58 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.57 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.56 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.55 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.54 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.53 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.52 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.51 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.50 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.49 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.48 app/views/caboose/posts/index.html.erb