@@ -9,6 +9,7 | |||
|
9 | 9 | </div> |
|
10 | 10 | |
|
11 | 11 | <div id="add-message" style="display:none;"> |
|
12 | <% if authorize_for('messages', 'new') %> | |
|
12 | 13 | <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%= l(:label_message_new) %></h2> |
|
13 | 14 | <% form_for :message, @message, :url => {:controller => 'messages', :action => 'new', :board_id => @board}, :html => {:multipart => true, :id => 'message-form'} do |f| %> |
|
14 | 15 | <%= render :partial => 'messages/form', :locals => {:f => f} %> |
@@ -23,6 +24,7 | |||
|
23 | 24 | <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-message")' %></p> |
|
24 | 25 | <% end %> |
|
25 | 26 | <div id="preview" class="wiki"></div> |
|
27 | <% end %> | |
|
26 | 28 | </div> |
|
27 | 29 | |
|
28 | 30 | <h2><%=h @board.name %></h2> |
General Comments 0
You need to be logged in to leave comments.
Login now