Sha256: b8f8fce3ed58fb6395e44e5d77b7e91b3689b420b9e77435cbac30485aefd3d6

Contents?: true

Size: 742 Bytes

Versions: 3

Compression:

Stored size: 742 Bytes

Contents

<div id="spud_blog_filters">
	<%= form_tag blog_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.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

3 entries across 3 versions & 1 rubygems

Version Path
spud_blog-0.5.1 app/views/blog/index.html.erb
spud_blog-0.5.0 app/views/blog/index.html.erb
spud_blog-0.4.0 app/views/blog/index.html.erb