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

Version Path
caboose-cms-0.9.229 app/views/caboose/posts/index.html.erb
caboose-cms-1.0.2 app/views/caboose/posts/index.html.erb
caboose-cms-1.0.1 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.228 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.227 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.226 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.225 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.224 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.223 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.222 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.221 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.220 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.219 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.218 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.217 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.216 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.215 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.214 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.213 app/views/caboose/posts/index.html.erb
caboose-cms-0.9.212 app/views/caboose/posts/index.html.erb