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