Sligth changes to issue comments quoting links.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1773 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
bfd0fb067a
commit
ed349ca942
|
@ -21,12 +21,12 @@ module JournalsHelper
|
||||||
editable = journal.editable_by?(User.current)
|
editable = journal.editable_by?(User.current)
|
||||||
links = []
|
links = []
|
||||||
if !journal.notes.blank?
|
if !journal.notes.blank?
|
||||||
|
links << link_to_remote(image_tag('comment.png'),
|
||||||
|
{ :url => {:controller => 'issues', :action => 'reply', :id => journal.journalized, :journal_id => journal} },
|
||||||
|
:title => l(:button_quote)) if options[:reply_links]
|
||||||
links << link_to_in_place_notes_editor(image_tag('edit.png'), "journal-#{journal.id}-notes",
|
links << link_to_in_place_notes_editor(image_tag('edit.png'), "journal-#{journal.id}-notes",
|
||||||
{ :controller => 'journals', :action => 'edit', :id => journal },
|
{ :controller => 'journals', :action => 'edit', :id => journal },
|
||||||
:title => l(:button_edit)) if editable
|
:title => l(:button_edit)) if editable
|
||||||
links << link_to_remote(image_tag('comment.png'),
|
|
||||||
{ :url => {:controller => 'issues', :action => 'reply', :id => journal.journalized, :journal_id => journal} },
|
|
||||||
:title => l(:button_reply)) if options[:reply_links]
|
|
||||||
end
|
end
|
||||||
content << content_tag('div', links.join(' '), :class => 'contextual') unless links.empty?
|
content << content_tag('div', links.join(' '), :class => 'contextual') unless links.empty?
|
||||||
content << textilizable(journal, :notes)
|
content << textilizable(journal, :notes)
|
||||||
|
|
|
@ -57,9 +57,7 @@ end %>
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<div class="contextual">
|
<div class="contextual">
|
||||||
<%= link_to_remote(image_tag('comment.png'),
|
<%= link_to_remote_if_authorized l(:button_quote), { :url => {:action => 'reply', :id => @issue} }, :class => 'icon icon-comment' %>
|
||||||
{ :url => {:controller => 'issues', :action => 'reply', :id => @issue} },
|
|
||||||
:title => l(:button_reply)) if authorize_for('issues', 'edit') %>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p><strong><%=l(:field_description)%></strong></p>
|
<p><strong><%=l(:field_description)%></strong></p>
|
||||||
|
|
Loading…
Reference in New Issue