stable

Clone or download

Read-only

Introduce current context section in New dropdown

Given a project ACME with 3 trackers: bug, story, and product, And bug and story are promoted in the "New" dropdown. When I am in the ACME project admin, Then the "New" dropdown should be ┌─────────────────┐ │ ACME │ │ + New bug │ │ + New Story │ ├─────────────────┤ │ TULEAP │ │ ◘ New project │ └─────────────────┘ When I am in the product tracker, Then the "New" dropdown should be ┌─────────────────┐ │ PRODUCT TRACKER │ │ + New product │ ├─────────────────┤ │ ACME │ │ + New bug │ │ + New Story │ ├─────────────────┤ │ TULEAP │ │ ◘ New project │ └─────────────────┘ When I am in the story tracker, Then the "New" dropdown should be ┌─────────────────┐ │ STORY TRACKER │ │ + New story │ ├─────────────────┤ │ ACME │ │ + New bug │ ├─────────────────┤ │ TULEAP │ │ ◘ New project │ └─────────────────┘ Part of story #16210 Remove navigation bar Change-Id: Ieb862568d760b07a771d0e14c60150b55de8356c

Modified Files

Name
M plugins/tracker/include/Tracker/NewDropdown/TrackerLinksInNewDropdownCollector.php +28 −0 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +15 −0 Go to diff View file
M plugins/tracker/test/unit/Tracker/NewDropdown/TrackerLinksInNewDropdownCollectorTest.php +40 −1 Go to diff View file
M src/common/layout/BaseLayout.php +12 −0 Go to diff View file
M src/common/layout/NewDropdown/NewDropdownPresenterBuilder.php +8 −4 Go to diff View file
M src/common/layout/NewDropdown/NewDropdownProjectLinksCollector.php +17 −4 Go to diff View file
M src/themes/BurningParrot/include/BurningParrotTheme.php +3 −1 Go to diff View file
M src/www/themes/FlamingParrot/FlamingParrot_Theme.class.php +3 −1 Go to diff View file
M tests/unit/common/layout/NewDropdown/NewDropdownPresenterBuilderTest.php +32 −8 Go to diff View file