Project

General

Profile

Actions

Feature #3122

closed

Subforums

Feature #3122: Subforums

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

Status:
Closed
Priority:
Normal
Assignee:
-
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.


Files

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

Related issues 1 (0 open — 1 closed)

Is duplicate of Redmine - Feature #3831: Support for subforumsClosedJean-Philippe LangActions

Updated by Vianney Lecroart over 17 years ago Actions #1

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>

Updated by Mischa The Evil about 17 years ago Actions #2

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

Dup. of #3831.

Actions

Also available in: PDF Atom