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.4 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.3 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.2 app/views/caboose/posts/index.html.erb
caboose-cms-0.5.1 app/views/caboose/posts/index.html.erb
caboose-cms-0.4.151 app/views/caboose/posts/index.html.erb
caboose-cms-0.4.150 app/views/caboose/posts/index.html.erb
caboose-cms-0.4.149 app/views/caboose/posts/index.html.erb
caboose-cms-0.4.148 app/views/caboose/posts/index.html.erb
caboose-cms-0.4.147 app/views/caboose/posts/index.html.erb
caboose-cms-0.4.146 app/views/caboose/posts/index.html.erb
caboose-cms-0.4.145 app/views/caboose/posts/index.html.erb
caboose-cms-0.4.144 app/views/caboose/posts/index.html.erb
caboose-cms-0.4.143 app/views/caboose/posts/index.html.erb
caboose-cms-0.4.142 app/views/caboose/posts/index.html.erb
caboose-cms-0.4.141 app/views/caboose/posts/index.html.erb
caboose-cms-0.4.140 app/views/caboose/posts/index.html.erb
caboose-cms-0.4.139 app/views/caboose/posts/index.html.erb
caboose-cms-0.4.138 app/views/caboose/posts/index.html.erb
caboose-cms-0.4.137 app/views/caboose/posts/index.html.erb
caboose-cms-0.4.136 app/views/caboose/posts/index.html.erb