Sha256: 9edbe801f8f1e4dfd5e0aca44fa79cdb0fc9cd4fb14cb2caa7bd707ad5a75e1e
Contents?: true
Size: 862 Bytes
Versions: 4
Compression:
Stored size: 862 Bytes
Contents
<div id="spud_blog_categories"> <%= form_tag '/blog/category' do %> <label>Filter By Category:</label> <%= spud_blog_category_select %> <input type="submit" value="Submit" /> <% end %> </div> <div id="spud_blog_archive"> <%= form_tag '/blog/archive' do %> <label>Filter By Month:</label> <%= spud_blog_archive_select %> <input type="submit" value="Submit" /> <% end %> </div> <div id="spud_blog_posts"> <% if @posts.any? %> <% @posts.each do |post| %> <div class="spud_blog_post"> <h3><%= link_to post.title, blog_post_path(post.url_name) %></h3> <h4>Posted by <%= post.author.full_name %> on <%= post.display_date %></h4> <div class="spud_blog_post_content"> <%= raw post.content %> </div> </div> <% end %> <% else %> <p>No posts were found in this category</p> <% end %> </div> <%= will_paginate @posts %>
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spud_blog-0.1.3 | app/views/blog/index.html.erb |
spud_blog-0.1.2 | app/views/blog/index.html.erb |
spud_blog-0.1.1 | app/views/blog/index.html.erb |
spud_blog-0.1.0 | app/views/blog/index.html.erb |