summaryrefslogtreecommitdiffstats
path: root/app/views/messages
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-18 18:01:14 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-18 18:01:14 +0000
commitc9a46950de1bbcd7e4b326dcc619ffacd4cac713 (patch)
tree35c3622b331369d07bd59f99383d26cacade1fbf /app/views/messages
parentff68fff80ed1cc9f95587581be9eb641d7a776e5 (diff)
downloadredmine-c9a46950de1bbcd7e4b326dcc619ffacd4cac713.tar.gz
redmine-c9a46950de1bbcd7e4b326dcc619ffacd4cac713.zip
Removes calls to link_to_remote.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10032 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/messages')
-rw-r--r--app/views/messages/show.html.erb19
1 files changed, 11 insertions, 8 deletions
diff --git a/app/views/messages/show.html.erb b/app/views/messages/show.html.erb
index 831d3ec14..36737b191 100644
--- a/app/views/messages/show.html.erb
+++ b/app/views/messages/show.html.erb
@@ -3,11 +3,13 @@
<div class="contextual">
<%= watcher_tag(@topic, User.current) %>
- <%= link_to_remote_if_authorized(
+ <%= link_to(
l(:button_quote),
- { :url => {:action => 'quote', :id => @topic} },
- :class => 'icon icon-comment'
- ) unless @topic.locked? %>
+ {:action => 'quote', :id => @topic},
+ :remote => true,
+ :method => 'get',
+ :class => 'icon icon-comment',
+ :remote => true) if !@topic.locked? && authorize_for('messages', 'reply') %>
<%= link_to(
l(:button_edit),
{:action => 'edit', :id => @topic},
@@ -38,11 +40,12 @@
<% @replies.each do |message| %>
<div class="message reply" id="<%= "message-#{message.id}" %>">
<div class="contextual">
- <%= link_to_remote_if_authorized(
+ <%= link_to(
image_tag('comment.png'),
- { :url => {:action => 'quote', :id => message} },
- :title => l(:button_quote)
- ) unless @topic.locked? %>
+ {:action => 'quote', :id => message},
+ :remote => true,
+ :method => 'get',
+ :title => l(:button_quote)) if !@topic.locked? && authorize_for('messages', 'reply') %>
<%= link_to(
image_tag('edit.png'),
{:action => 'edit', :id => message},