##// END OF EJS Templates
Adds wiki toolbar to notes editing form (#7899)....
Jean-Philippe Lang -
r5120:9730ff22257b
parent child
Show More
@@ -17,3 +17,5
17 </div>
17 </div>
18 <%= call_hook(:view_issues_history_journal_bottom, { :journal => journal }) %>
18 <%= call_hook(:view_issues_history_journal_bottom, { :journal => journal }) %>
19 <% end %>
19 <% end %>
20
21 <% heads_for_wiki_formatter if User.current.allowed_to?(:edit_issue_notes, issue.project) || User.current.allowed_to?(:edit_own_issue_notes, issue.project) %>
@@ -1,8 +1,11
1 <% form_remote_tag(:url => {}, :html => { :id => "journal-#{@journal.id}-form" }) do %>
1 <% form_remote_tag(:url => {}, :html => { :id => "journal-#{@journal.id}-form" }) do %>
2 <%= text_area_tag :notes, @journal.notes, :class => 'wiki-edit',
2 <%= text_area_tag :notes, @journal.notes,
3 :rows => (@journal.notes.blank? ? 10 : [[10, @journal.notes.length / 50].max, 100].min) %>
3 :id => "journal_#{@journal.id}_notes",
4 :class => 'wiki-edit',
5 :rows => (@journal.notes.blank? ? 10 : [[10, @journal.notes.length / 50].max, 100].min) %>
4 <%= call_hook(:view_journals_notes_form_after_notes, { :journal => @journal}) %>
6 <%= call_hook(:view_journals_notes_form_after_notes, { :journal => @journal}) %>
5 <p><%= submit_tag l(:button_save) %>
7 <p><%= submit_tag l(:button_save) %>
6 <%= link_to l(:button_cancel), '#', :onclick => "Element.remove('journal-#{@journal.id}-form'); " +
8 <%= link_to l(:button_cancel), '#', :onclick => "Element.remove('journal-#{@journal.id}-form'); " +
7 "Element.show('journal-#{@journal.id}-notes'); return false;" %></p>
9 "Element.show('journal-#{@journal.id}-notes'); return false;" %></p>
8 <% end %>
10 <% end %>
11 <%= wikitoolbar_for "journal_#{@journal.id}_notes" %>
General Comments 0
You need to be logged in to leave comments. Login now