##// END OF EJS Templates
Removes calls to link_to_remote....
Jean-Philippe Lang -
r9849:c9a46950de1b
parent child
Show More
@@ -26,9 +26,10
26 <%= watchers_checkboxes(@issue, @available_watchers) %>
26 <%= watchers_checkboxes(@issue, @available_watchers) %>
27 </span>
27 </span>
28 <span class="search_for_watchers">
28 <span class="search_for_watchers">
29 <%= link_to_remote l(:label_search_for_watchers),
29 <%= link_to l(:label_search_for_watchers),
30 :url => {:controller => 'watchers', :action => 'new', :project_id => @issue.project},
30 {:controller => 'watchers', :action => 'new', :project_id => @issue.project},
31 :method => 'get' %>
31 :remote => true,
32 :method => 'get' %>
32 </span>
33 </span>
33 </p>
34 </p>
34 <% end %>
35 <% end %>
@@ -70,10 +70,11 end %>
70 <hr />
70 <hr />
71 <% if @issue.description? %>
71 <% if @issue.description? %>
72 <div class="contextual">
72 <div class="contextual">
73 <%= link_to_remote_if_authorized(
73 <%= link_to l(:button_quote),
74 l(:button_quote),
74 {:controller => 'journals', :action => 'new', :id => @issue},
75 { :url => {:controller => 'journals', :action => 'new', :id => @issue} },
75 :remote => true,
76 :class => 'icon icon-comment') %>
76 :method => 'post',
77 :class => 'icon icon-comment' if authorize_for('issues', 'edit') %>
77 </div>
78 </div>
78
79
79 <p><strong><%=l(:field_description)%></strong></p>
80 <p><strong><%=l(:field_description)%></strong></p>
@@ -3,11 +3,13
3
3
4 <div class="contextual">
4 <div class="contextual">
5 <%= watcher_tag(@topic, User.current) %>
5 <%= watcher_tag(@topic, User.current) %>
6 <%= link_to_remote_if_authorized(
6 <%= link_to(
7 l(:button_quote),
7 l(:button_quote),
8 { :url => {:action => 'quote', :id => @topic} },
8 {:action => 'quote', :id => @topic},
9 :class => 'icon icon-comment'
9 :remote => true,
10 ) unless @topic.locked? %>
10 :method => 'get',
11 :class => 'icon icon-comment',
12 :remote => true) if !@topic.locked? && authorize_for('messages', 'reply') %>
11 <%= link_to(
13 <%= link_to(
12 l(:button_edit),
14 l(:button_edit),
13 {:action => 'edit', :id => @topic},
15 {:action => 'edit', :id => @topic},
@@ -38,11 +40,12
38 <% @replies.each do |message| %>
40 <% @replies.each do |message| %>
39 <div class="message reply" id="<%= "message-#{message.id}" %>">
41 <div class="message reply" id="<%= "message-#{message.id}" %>">
40 <div class="contextual">
42 <div class="contextual">
41 <%= link_to_remote_if_authorized(
43 <%= link_to(
42 image_tag('comment.png'),
44 image_tag('comment.png'),
43 { :url => {:action => 'quote', :id => message} },
45 {:action => 'quote', :id => message},
44 :title => l(:button_quote)
46 :remote => true,
45 ) unless @topic.locked? %>
47 :method => 'get',
48 :title => l(:button_quote)) if !@topic.locked? && authorize_for('messages', 'reply') %>
46 <%= link_to(
49 <%= link_to(
47 image_tag('edit.png'),
50 image_tag('edit.png'),
48 {:action => 'edit', :id => message},
51 {:action => 'edit', :id => message},
General Comments 0
You need to be logged in to leave comments. Login now