https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292009-07-16T08:13:08ZRedmineRedmine - Feature #3122: Subforumshttps://www.redmine.org/issues/3122?journal_id=101822009-07-16T08:13:08ZVianney Lecroart
<ul></ul><p>I wanted this too, so I created a very <strong>ugly hack</strong> that do the job :)<br />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.</p>
<ul>
<li>1 space at the beginning of the description => subforum</li>
<li>2 spaces at the beginning of the description => subforum + separation with the next forum</li>
<li>3 spaces at the beginning of the description => separation with the next forum</li>
</ul>
<p>Modified file is: redmine/app/views/boards/index.rhtml<br /><pre>
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>&nbsp;</td><td></td><td></td><td></td></tr>" end %>
<% end %>
</tbody>
</table>
</pre></p> Redmine - Feature #3122: Subforumshttps://www.redmine.org/issues/3122?journal_id=123252009-11-23T00:12:16ZMischa The Evil
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Duplicate</i></li></ul><p>Dup. of <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Support for subforums (Closed)" href="https://www.redmine.org/issues/3831">#3831</a>.</p>