From d113f0f06896ad1355067092bee5b6359558cba5 Mon Sep 17 00:00:00 2001 From: albert Date: Fri, 22 Feb 2013 15:59:18 -0500 Subject: [PATCH] remove quote link on single forum posts --- app/views/forum_posts/_forum_post.html.erb | 6 ++++-- app/views/forum_posts/new.js.erb | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/forum_posts/_forum_post.html.erb b/app/views/forum_posts/_forum_post.html.erb index 0de5b16c0..d7d7cbbc0 100644 --- a/app/views/forum_posts/_forum_post.html.erb +++ b/app/views/forum_posts/_forum_post.html.erb @@ -15,8 +15,10 @@
<%= format_text(forum_post.body) %>
- -
  • <%= link_to "Quote", new_forum_post_path(:post_id => forum_post.id), :method => :get, :remote => true %>
  • + + <% if @forum_topic %> +
  • <%= link_to "Quote", new_forum_post_path(:post_id => forum_post.id), :method => :get, :remote => true %>
  • + <% end %> <% if CurrentUser.user.is_janitor? %> <% if forum_post.is_deleted %>
  • <%= link_to "Undelete", undelete_forum_post_path(forum_post.id), :method => :post, :remote => true %>
  • diff --git a/app/views/forum_posts/new.js.erb b/app/views/forum_posts/new.js.erb index 389c17dd5..65b6bd21b 100644 --- a/app/views/forum_posts/new.js.erb +++ b/app/views/forum_posts/new.js.erb @@ -1,4 +1,4 @@ -$("#forum_post_body").val($("#forum_post_body").val() + <%= raw @forum_post.body.to_json %>); +$("#forum_post_body").val($("#forum_post_body").val() + "\n\n" + <%= raw @forum_post.body.to_json %>); $("#topic-response").show(); $('html, body').animate({