From 0bf02b8a65c0f3fcf96249319b02859f5c570c97 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Sun, 20 Jan 2013 11:22:46 -0500 Subject: [PATCH] Fixed topcis#show --- app/views/topics/show.html.erb | 52 ++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index 8a49b8c..37eca35 100755 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -12,31 +12,33 @@
<% @topic.posts.each do |post| %> - - - - - - - + <% if !post.user.blank? %> + + + + + + + + <%end%> <% end %>
- - - <%= link_to "Reply", new_topic_post_path(@topic) if can? :create, @topic.posts.new %> - <%= link_to "Quote", new_topic_post_path(@topic, :quote => post) if can? :create, @topic.posts.new %> - <%= link_to "Edit", edit_post_path(post) if can? :update, post %> - <%= link_to "Delete", post, :confirm => "Are you sure?", :method => :delete if can? :destroy, post %> - -
- <%= post.body.bbcode_to_html().html_safe %> -
+ + + <%= link_to "Reply", new_topic_post_path(@topic) if can? :create, @topic.posts.new %> + <%= link_to "Quote", new_topic_post_path(@topic, :quote => post) if can? :create, @topic.posts.new %> + <%= link_to "Edit", edit_post_path(post) if can? :update, post %> + <%= link_to "Delete", post, :confirm => "Are you sure?", :method => :delete if can? :destroy, post %> + +
+ <%= post.body.bbcode_to_html().html_safe %> +