Support for subforums (#3831).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10142 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-07-31 17:17:52 +00:00
parent 9554f0133f
commit bc153cb61d
18 changed files with 210 additions and 14 deletions
+3
View File
@@ -3,4 +3,7 @@
<div class="box tabular">
<p><%= f.text_field :name, :required => true %></p>
<p><%= f.text_field :description, :required => true, :size => 80 %></p>
<% if @board.valid_parents.any? %>
<p><%= f.select :parent_id, boards_options_for_select(@board.valid_parents), :include_blank => true, :label => :field_board_parent %></p>
<% end %>
</div>
+2 -2
View File
@@ -8,9 +8,9 @@
<th><%= l(:label_message_last) %></th>
</tr></thead>
<tbody>
<% for board in @boards %>
<% Board.board_tree(@boards) do |board, level| %>
<tr class="<%= cycle 'odd', 'even' %>">
<td>
<td style="padding-left: <%= level * 18 %>px;">
<%= link_to h(board.name), {:action => 'show', :id => board}, :class => "board" %><br />
<%=h board.description %>
</td>
+1 -1
View File
@@ -1,4 +1,4 @@
<%= breadcrumb link_to(l(:label_board_plural), project_boards_path(@project)) %>
<%= board_breadcrumb(@board) %>
<div class="contextual">
<%= link_to_if_authorized l(:label_message_new),
+1 -1
View File
@@ -18,7 +18,7 @@
<% if !replying && !@message.new_record? && @message.safe_attribute?('board_id') %>
<p><label><%= l(:label_board) %></label><br />
<%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %></p>
<%= f.select :board_id, boards_options_for_select(@message.project.boards) %></p>
<% end %>
<p>
+1 -2
View File
@@ -1,5 +1,4 @@
<%= breadcrumb link_to(l(:label_board_plural), project_boards_path(@project)),
link_to(h(@board.name), project_board_path(@project, @board)) %>
<%= board_breadcrumb(@message) %>
<h2><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h2>
+1 -2
View File
@@ -1,5 +1,4 @@
<%= breadcrumb link_to(l(:label_board_plural), project_boards_path(@project)),
link_to(h(@board.name), project_board_path(@project, @board)) %>
<%= board_breadcrumb(@message) %>
<div class="contextual">
<%= watcher_tag(@topic, User.current) %>
+2 -2
View File
@@ -7,10 +7,10 @@
<th></th>
</tr></thead>
<tbody>
<% @project.boards.each do |board|
<% Board.board_tree(@project.boards) do |board, level|
next if board.new_record? %>
<tr class="<%= cycle 'odd', 'even' %>">
<td><%= link_to board.name, project_board_path(@project, board) %></td>
<td style="padding-left: <%= level * 18 %>px;"><%= link_to board.name, project_board_path(@project, board) %></td>
<td><%=h board.description %></td>
<td align="center">
<% if authorize_for("boards", "edit") %>