From fcd450b2fd084a0f4ee39d05759aa368219ffbbc Mon Sep 17 00:00:00 2001 From: Toks Date: Sun, 12 May 2013 13:52:26 -0400 Subject: [PATCH] fixes #1609 --- app/views/forum_posts/_forum_post.html.erb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/forum_posts/_forum_post.html.erb b/app/views/forum_posts/_forum_post.html.erb index fe0899d74..5aa59276d 100644 --- a/app/views/forum_posts/_forum_post.html.erb +++ b/app/views/forum_posts/_forum_post.html.erb @@ -37,8 +37,11 @@
  • <%= link_to "Edit", edit_forum_post_path(forum_post.id) %>
  • <% end %> <% end %> -
  • <%= link_to "Parent", forum_topic_path(forum_post.topic, :page => forum_post.forum_topic_page, :anchor => "forum_post_#{forum_post.id}") %>
  • -
  • <%= link_to "Permalink", forum_post_path(forum_post) %>
  • + <% if params[:controller] == "forum_posts" %> +
  • <%= link_to "Parent", forum_topic_path(forum_post.topic, :page => forum_post.forum_topic_page, :anchor => "forum_post_#{forum_post.id}") %>
  • + <% else %> +
  • <%= link_to "Permalink", forum_post_path(forum_post) %>
  • + <% end %>