Skip to content

Commit

Permalink
Move "all projects" into the scrollable area
Browse files Browse the repository at this point in the history
Move the "All projects" entry in navbar projects list to be the first
element in the scrollable area.
  • Loading branch information
cproensa authored and dregad committed Apr 13, 2019
1 parent 09a9aea commit c9f8cdd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/layout_api.php
Expand Up @@ -592,13 +592,6 @@ function layout_navbar_projects_list( $p_project_id = null, $p_include_all_proje
$t_project_ids = user_get_accessible_projects( $t_user_id );
$t_can_report = true;

if( $p_include_all_projects && $p_filter_project_id !== ALL_PROJECTS ) {
echo ALL_PROJECTS == $p_project_id ? '<li class="active">' : '<li>';
echo '<a href="' . helper_mantis_url( 'set_project.php' ) . '?project_id=' . ALL_PROJECTS . '">';
echo lang_get( 'all_projects' ) . ' </a></li>' . "\n";
echo '<li class="divider"></li>' . "\n";
}

echo '<li>';
echo '<div class="projects-searchbox">';
echo '<input class="search form-control input-md" placeholder="' . lang_get( 'search' ) . '" />';
Expand All @@ -609,6 +602,13 @@ function layout_navbar_projects_list( $p_project_id = null, $p_include_all_proje
echo '<div class="scrollable-menu">';
echo '<ul class="list dropdown-yellow no-margin">';

if( $p_include_all_projects && $p_filter_project_id !== ALL_PROJECTS ) {
echo ALL_PROJECTS == $p_project_id ? '<li class="active">' : '<li>';
echo '<a href="' . helper_mantis_url( 'set_project.php' ) . '?project_id=' . ALL_PROJECTS . '">';
echo lang_get( 'all_projects' ) . ' </a></li>' . "\n";
echo '<li class="divider"></li>' . "\n";
}

foreach( $t_project_ids as $t_id ) {
if( $p_can_report_only ) {
$t_report_bug_threshold = config_get( 'report_bug_threshold', null, $t_user_id, $t_id );
Expand Down

0 comments on commit c9f8cdd

Please sign in to comment.