@@ -23,9 +23,11 module JournalsHelper | |||||
23 | editable = User.current.logged? && (User.current.allowed_to?(:edit_issue_notes, issue.project) || (journal.user == User.current && User.current.allowed_to?(:edit_own_issue_notes, issue.project))) |
|
23 | editable = User.current.logged? && (User.current.allowed_to?(:edit_issue_notes, issue.project) || (journal.user == User.current && User.current.allowed_to?(:edit_own_issue_notes, issue.project))) | |
24 | links = [] |
|
24 | links = [] | |
25 | if !journal.notes.blank? |
|
25 | if !journal.notes.blank? | |
26 |
links << link_to |
|
26 | links << link_to(image_tag('comment.png'), | |
27 |
|
|
27 | {:controller => 'journals', :action => 'new', :id => issue, :journal_id => journal}, | |
28 | :title => l(:button_quote)) if options[:reply_links] |
|
28 | :remote => true, | |
|
29 | :method => 'post', | |||
|
30 | :title => l(:button_quote)) if options[:reply_links] | |||
29 | links << link_to_in_place_notes_editor(image_tag('edit.png'), "journal-#{journal.id}-notes", |
|
31 | links << link_to_in_place_notes_editor(image_tag('edit.png'), "journal-#{journal.id}-notes", | |
30 | { :controller => 'journals', :action => 'edit', :id => journal }, |
|
32 | { :controller => 'journals', :action => 'edit', :id => journal }, | |
31 | :title => l(:button_edit)) if editable |
|
33 | :title => l(:button_edit)) if editable |
General Comments 0
You need to be logged in to leave comments.
Login now