Sha256: 15dd1a962c8aa7a6f9368b8ea25631ef194b7b1a733dda6326f0b8b7774c09a9

Contents?: true

Size: 914 Bytes

Versions: 15

Compression:

Stored size: 914 Bytes

Contents

<% content_for :title do %>
	News | <%=current_site_name%>
<% end %>

<% content_for :head do %>
	<%= spud_news_rss_link %>
<% 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">
					<%= truncate_html post.content.html_safe, :length => 250 %>
				</div>
			</div>
		<% end %>
	<% else %>
		<p>No posts were found in this category</p>
	<% end %>
</div>

<%= will_paginate @posts %>

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
tb_blog-1.0.4 app/views/news/index.html.erb
tb_blog-1.0.3 app/views/news/index.html.erb
tb_blog-1.0.2 app/views/news/index.html.erb
tb_blog-1.0.1 app/views/news/index.html.erb
tb_blog-1.0 app/views/news/index.html.erb
spud_blog-0.9.10 app/views/news/index.html.erb
spud_blog-0.9.9 app/views/news/index.html.erb
spud_blog-0.9.8 app/views/news/index.html.erb
spud_blog-0.9.7 app/views/news/index.html.erb
spud_blog-0.9.5 app/views/news/index.html.erb
spud_blog-0.9.4 app/views/news/index.html.erb
spud_blog-0.9.3 app/views/news/index.html.erb
spud_blog-0.9.2 app/views/news/index.html.erb
spud_blog-0.9.1 app/views/news/index.html.erb
spud_blog-0.9.0 app/views/news/index.html.erb