diff --git a/app/views/forum_posts/_forum_post.html.erb b/app/views/forum_posts/_forum_post.html.erb index ea833f505..0ce2df790 100644 --- a/app/views/forum_posts/_forum_post.html.erb +++ b/app/views/forum_posts/_forum_post.html.erb @@ -42,14 +42,14 @@ <% else %>
  • <%= link_to "Permalink", forum_post_path(forum_post) %>
  • <% end %> - <% if forum_post.editable_by?(CurrentUser.user) %> - <% if forum_post.is_original_post? %> - <%= render "forum_topics/form", :forum_topic => forum_post.topic %> - <% else %> - <%= render "forum_posts/partials/edit/form", :forum_post => forum_post %> - <% end %> - <% end %> + <% if forum_post.editable_by?(CurrentUser.user) %> + <% if forum_post.is_original_post? %> + <%= render "forum_topics/form", :forum_topic => forum_post.topic %> + <% else %> + <%= render "forum_posts/partials/edit/form", :forum_post => forum_post %> + <% end %> + <% end %>