From 0d76f30fa384586e6ca18913c0604f4fb9db25aa Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Sat, 2 Apr 2011 12:10:42 +1300 Subject: mild refactor, one line if statement and decreased an indent one level. --- app/views/blog/posts/_post.html.erb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'app') diff --git a/app/views/blog/posts/_post.html.erb b/app/views/blog/posts/_post.html.erb index d1c204e..f589a33 100644 --- a/app/views/blog/posts/_post.html.erb +++ b/app/views/blog/posts/_post.html.erb @@ -14,7 +14,7 @@ <% end %> @@ -27,6 +27,4 @@ <% end %> <%= render :partial => '/shared/draft_page_message' unless @blog_post.nil? or @blog_post.live? -%> -<% if next_or_previous?(@blog_post) -%> - <%= render 'nav' %> -<% end -%> +<%= render 'nav' if next_or_previous?(@blog_post) %> -- cgit v1.2.3