Sha256: 3071f26f562b824fb94606997de263824de44010c80c7b6133fc71339f6f61d6

Contents?: true

Size: 894 Bytes

Versions: 1

Compression:

Stored size: 894 Bytes

Contents

<%=content_for :head do%>
<link rel="alternate" type="application/rss+xml" title="<%=Spud::Core.site_name%> Blog RSS" href="<%=blog_url()%>" />
<%end%>
<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

1 entries across 1 versions & 1 rubygems

Version Path
spud_blog-0.6.0 app/views/blog/index.html.erb