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