remove quote link on single forum posts

This commit is contained in:
albert
2013-02-22 15:59:18 -05:00
parent 26b5f3091c
commit d113f0f068
2 changed files with 5 additions and 3 deletions

View File

@@ -15,8 +15,10 @@
<div class="prose">
<%= format_text(forum_post.body) %>
</div>
<menu>
<li><%= link_to "Quote", new_forum_post_path(:post_id => forum_post.id), :method => :get, :remote => true %></li>
<menu>
<% if @forum_topic %>
<li><%= link_to "Quote", new_forum_post_path(:post_id => forum_post.id), :method => :get, :remote => true %></li>
<% end %>
<% if CurrentUser.user.is_janitor? %>
<% if forum_post.is_deleted %>
<li><%= link_to "Undelete", undelete_forum_post_path(forum_post.id), :method => :post, :remote => true %></li>

View File

@@ -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({