Feature #3122

Subforums

Added by Anonymous over 8 years ago. Updated about 8 years ago.

Status:ClosedStart date:2009-04-05
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Forums
Target version:-
Resolution:Duplicate

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.

redmine-subforums.png (24.3 KB) Anonymous, 2009-04-05 07:11


Related issues

Duplicates Redmine - Feature #3831: Support for subforums Closed 2009-09-07

History

#1 Updated by Vianney Lecroart over 8 years ago

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>&nbsp;</td><td></td><td></td><td></td></tr>" end %>
 <% end %>
   </tbody>
 </table>

#2 Updated by Mischa The Evil about 8 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Dup. of #3831.

Also available in: Atom PDF