Sha256: 7f29e0dd4a3e44249b2bf3ae2e4a950a3ec743d1a34f0f4bc793fbbcc784820d

Contents?: true

Size: 909 Bytes

Versions: 2

Compression:

Stored size: 909 Bytes

Contents

<%=content_for :head do%>
<link rel="alternate" type="application/rss+xml" title="<%=Spud::Core.site_name%> News RSS" href="<%=news_url(:format => :rss)%>" />
<%end%>
<div id="spud_news_filters">
	<%= form_tag news_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_news_posts">
	<% if @posts.any? %>
		<% @posts.each do |post| %>
			<div class="spud_news_post">
				<h3><%= link_to post.title, news_post_path(post.url_name) %></h3>
				<h4>Posted by <%= post.author.full_name %> on <%= post.display_date %></h4>
				<div class="spud_news_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

2 entries across 2 versions & 1 rubygems

Version Path
spud_blog-0.7.0 app/views/news/index.html.erb
spud_blog-0.6.3 app/views/news/index.html.erb