Administrators can edit issue notes.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1105 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
4abb82fd7b
commit
bea49ae245
13 files changed
+156
-3
No files matched your search
@@ -8,6 +8,6 @@
|
||||
<li><%= show_detail(detail) %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<%= textilizable(journal.notes) unless journal.notes.blank? %>
|
||||
<%= render_notes(journal) unless journal.notes.blank? %>
|
||||
<% note_id += 1 %>
|
||||
<% end %>
|
||||
@@ -0,0 +1,7 @@
|
||||
<% form_remote_tag(:url => {}, :html => { :id => "journal-#{@journal.id}-form" }) do %>
|
||||
<%= text_area_tag :notes, @journal.notes, :class => 'wiki-edit',
|
||||
:rows => (@journal.notes.blank? ? 10 : [[10, @journal.notes.length / 50].max, 100].min) %>
|
||||
<p><%= submit_tag l(:button_save) %>
|
||||
<%= link_to l(:button_cancel), '#', :onclick => "Element.remove('journal-#{@journal.id}-form'); " +
|
||||
"Element.show('journal-#{@journal.id}-notes'); return false;" %></p>
|
||||
<% end %>
|
||||
@@ -0,0 +1,3 @@
|
||||
page.hide "journal-#{@journal.id}-notes"
|
||||
page.insert_html :after, "journal-#{@journal.id}-notes",
|
||||
:partial => 'notes_form'
|
||||
@@ -0,0 +1,3 @@
|
||||
page.replace "journal-#{@journal.id}-notes", render_notes(@journal)
|
||||
page.show "journal-#{@journal.id}-notes"
|
||||
page.remove "journal-#{@journal.id}-form"
|
||||
Reference in new issue
Block a user