/** * Returns the number of open issues that are assigned to the current user * in the current project. * * @return Number of issues assigned to current user that are still open. * @access public */ function current_user_get_assigned_open_bug_count() { return user_get_assigned_open_bug_count(auth_get_current_user_id(), helper_get_current_project()); }
html_status_legend(); echo '<br />'; } ?> <table class="hide" border="0" cellspacing="3" cellpadding="0"> <?php $t_number_of_boxes = count($t_boxes); $t_boxes_position = config_get('my_view_boxes_fixed_position'); $t_counter = 0; while (list($t_box_title, $t_box_display) = each($t_boxes)) { # don't display bugs that are set as 0 if ($t_box_display == 0) { $t_number_of_boxes = $t_number_of_boxes - 1; } else { if ($t_box_title == 'assigned' && (current_user_is_anonymous() or user_get_assigned_open_bug_count($t_current_user_id, $t_project_id) == 0)) { $t_number_of_boxes = $t_number_of_boxes - 1; } else { if ($t_box_title == 'monitored' && (current_user_is_anonymous() or !access_has_project_level(config_get('monitor_bug_threshold'), $t_project_id, $t_current_user_id))) { $t_number_of_boxes = $t_number_of_boxes - 1; } else { if (in_array($t_box_title, array('reported', 'feedback', 'verify')) && (current_user_is_anonymous() or !access_has_project_level(config_get('report_bug_threshold'), $t_project_id, $t_current_user_id))) { $t_number_of_boxes = $t_number_of_boxes - 1; } else { $t_counter++; # check the style of displaying boxes - fixed (ie. each box in a separate table cell) or not if (ON == $t_boxes_position) { # for even box number start new row and column if (1 == $t_counter % 2) { echo '<tr><td valign="top" width="50%">'; include 'my_view_inc.php';