View Issue Details

IDProjectCategoryView StatusLast Update
0026887mantisbtsub-projectspublic2020-05-02 15:13
Reporterdregad Assigned Todregad  
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionfixed 
Target Version2.25.0Fixed in Version2.25.0 
Summary0026887: Project Menu Bar does not indent subprojects properly
Description

While analyzing 0026886, I noticed that when there is more than one level of subproject, the Project Menu Bar always displays the subprojects with a single » instead of properly "indenting" them with as number of » characters equal to the subprojects' level in the hierarchy.

Steps To Reproduce

Given the following project hierarchy

Subprojects tests
» sub-1
» » sub-1.1
» sub-2

Set $g_show_project_menu_bar = ON; in config_inc.php and display any page, project menu bar is shown as per attached screenshot (notice the single » for level 2 subproject sub-1.1).

TagsNo tags attached.

Relationships

related to 0026886 closeddregad How to add new issue count to the projects bar? 
related to 0026888 resolveddregad Refactor printing of project selection menus 

Activities

dregad

dregad

2020-04-18 05:23

developer  

image.png (3,238 bytes)   
image.png (3,238 bytes)   
dregad

dregad

2020-04-18 07:01

developer   ~0063847

PR https://github.com/mantisbt/mantisbt/pull/1654

thE_iNviNciblE

thE_iNviNciblE

2020-04-30 04:03

reporter   ~0063939

is a nice option.

Ist it possible to disable some projekts ?

i see to many no more needed projects.

would also be quite nice if the Nav-Projekt-Menue also only shows active projects

Related Changesets

MantisBT: master edb40eab

2020-04-18 06:41:44

dregad

Details Diff
Function to display formatted project selection links

New project_link_for_menu() function added to Project API, to avoid code
duplication when displaying project selection links in the navbar menu
and the project menu bar.

Handles the indentation logic based on the subproject's level in the
hierarchy, selection of the active project as well as context-specific
formatting ($p_class parameter).

Fixes 0026887, 0026888
Affected Issues
0026887, 0026888
mod - core/html_api.php Diff File
mod - core/layout_api.php Diff File
mod - core/project_api.php Diff File