Feature #3122
closed
Added by Anonymous over 15 years ago.
Updated almost 15 years ago.
Description
I think it would be good for the forums of subprojects to appear below the forums listing of their parent project, to make things easier to find and more centralized.
Maybe others can expand or refine the example image I attached if interested.
Files
I wanted this too, so I created a very ugly hack that do the job :)
I used the forum description to see if we need to display the forum as a subforum and/or add spaces to do a separation.
- 1 space at the beginning of the description => subforum
- 2 spaces at the beginning of the description => subforum + separation with the next forum
- 3 spaces at the beginning of the description => separation with the next forum
Modified file is: redmine/app/views/boards/index.rhtml
Index: index.rhtml
===================================================================
--- index.rhtml (revision 2819)
+++ index.rhtml (working copy)
@@ -10,7 +10,7 @@
<tbody>
<% for board in @boards %>
<tr class="<%= cycle 'odd', 'even' %>">
- <td>
+ <td <%= if board.description[0].chr==" " && board.description[2].chr!=" " then "style='padding-left:50px;'" end %> >
<%= link_to h(board.name), {:action => 'show', :id => board}, :class => "icon22 icon22-comment" %><br />
<%=h board.description %>
</td>
@@ -25,6 +25,7 @@
</small>
</td>
</tr>
+<%= if board.description[1].chr==" " then "<tr class='even'><td> </td><td></td><td></td><td></td></tr>" end %>
<% end %>
</tbody>
</table>
- Status changed from New to Closed
- Resolution set to Duplicate
Also available in: Atom
PDF