Sha256: 1d28c94f3a5957141cdd47432c38e7f6ae8343f6ddfa974bfb35e4f0992303ac
Contents?: true
Size: 1.2 KB
Versions: 5
Compression:
Stored size: 1.2 KB
Contents
<% @page_title = @config.name %> <% content_for :head do %> <%= spud_blog_rss_link %> <% end %> <% cache(cache_key_for_spud_collection(@posts, :cache_params => [:category_url_name, :archive_date, :page], :for_user => true)) do %> <div id="spud_blog_filters"> <%= form_tag posts_path, :class => 'spud_blog_filter_form' do %> <label>Category:</label> <%= spud_post_category_select %> <label>Month:</label> <%= spud_post_archive_select %> <input type="submit" value="Submit" /> <% end %> </div> <div id="spud_blog_posts"> <% if @posts.length > 0 %> <% @posts.includes(:categories, :author).each do |post| %> <% cache(post) do %> <div class="spud_blog_post"> <h3><%= link_to post.title, post_path(post.url_name) %></h3> <h4>Posted by <%= post.author.full_name %> on <%= post.display_date %></h4> <div class="spud_blog_post_content"> <%= truncate_html post.content_processed.html_safe, :length => 250 %> </div> </div> <% end %> <% end %> <% else %> <p>No posts were found in this category</p> <% end %> </div> <%= will_paginate @posts %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems