Project

General

Profile

Actions

Feature #15914

open

Projects list : button to hide / show sub-projects

Added by Jérôme BATAILLE almost 11 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Projects
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

It allows to hide sub-projects level by level.
It's very useful for example to move projects, for administrators with plenty of projects this is our case :-) ).

The patch is simple and non intrusive (Javascript copied from other part of Redmine with + / - buttons).

I did not found a way to include the javascript code in a separate js file (I put this enhancement in our specific plugin).


Files

Actions #2

Updated by Jérôme BATAILLE almost 11 years ago

  • This piece of css must be added somewhere in a stylesheet file (in a theme for example)

Take care of the image url relative path

div.closed span.expander {
    background-image: url(../../../../images/bullet_toggle_plus.png);
}

div span.expander {
    background-image: url(../../../../images/bullet_toggle_minus.png);
    padding-left: 8px;
    margin-left: 0;
    cursor: pointer;
}
Actions #4

Updated by Sebastian Paluch over 9 years ago

+1

...but the patch should be complete, which is, include all necessary changes to the helper and main stylesheet. I think, it would be nice too if the project tree could be collapsed by default.

Actions #5

Updated by Jérôme BATAILLE over 8 years ago

TODO: provide a full patch

Actions

Also available in: Atom PDF