Feature #15914

Projects list : button to hide / show sub-projects

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

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Projects
Target version:-
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).

RM_15914_projects_hide_subprojects_RM_V2.3.2.diff Magnifier (2 KB) Jérôme BATAILLE, 2014-01-20 21:07

RM_15914_projects_hide_subprojects_RM_V2.3.2.diff Magnifier (1.59 KB) Jérôme BATAILLE, 2014-01-20 21:10

History

#2 Updated by Jérôme BATAILLE over 8 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;
}

#4 Updated by Sebastian Paluch almost 7 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.

#5 Updated by Jérôme BATAILLE over 6 years ago

TODO: provide a full patch

Also available in: Atom PDF