/** * Print column content for column priority * * @param BugData $p_bug bug object * @param int $p_columns_target see COLUMNS_TARGET_* in constant_inc.php * @return null * @access public */ function print_column_priority($p_bug, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE) { echo '<td class="column-priority">'; if (ON == config_get('show_priority_text')) { print_formatted_priority_string($p_bug); } else { print_status_icon($p_bug->priority); } echo '</td>'; }
function print_column_priority($p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE) { if ($p_columns_target != COLUMNS_TARGET_CSV_PAGE) { echo '<td>'; if (ON == config_get('show_priority_text')) { print_formatted_priority_string($p_row['status'], $p_row['priority']); } else { print_status_icon($p_row['priority']); } echo '</td>'; } else { echo get_enum_element('priority', $p_row['priority']); } }
"> <?php # -- Bug ID and details link + Pencil shortcut -- ?> <td class="center nowrap my-buglist-id"> <span class="small"> <?php print_bug_link($t_bug->id); echo '<br />'; if (!bug_is_readonly($t_bug->id) && access_has_bug_level($t_update_bug_threshold, $t_bug->id)) { echo '<a class="edit" href="' . string_get_bug_update_url($t_bug->id) . '"><img src="' . $t_icon_path . 'update.png' . '" alt="' . lang_get('update_bug_button') . '" /></a>'; } if (ON == config_get('show_priority_text')) { print_formatted_priority_string($t_bug); } else { print_status_icon($t_bug->priority); } if ($t_attachment_count > 0) { $t_href = string_get_bug_view_url($t_bug->id) . '#attachments'; $t_href_title = sprintf(lang_get('view_attachments_for_issue'), $t_attachment_count, $t_bug->id); $t_alt_text = $t_attachment_count . lang_get('word_separator') . lang_get('attachments'); echo "<a class=\"attachments\" href=\"{$t_href}\" title=\"{$t_href_title}\"><img src=\"{$t_icon_path}attachment.png\" alt=\"{$t_alt_text}\" title=\"{$t_alt_text}\" /></a>"; } if (VS_PRIVATE == $t_bug->view_state) { echo '<img src="' . $t_icon_path . 'protected.gif" width="8" height="15" alt="' . lang_get('private') . '" />'; } ?> </span> </td> <?php
"> <?php # -- Bug ID and details link + Pencil shortcut -- ?> <td class="center" valign="top" width ="0" nowrap> <span class="small"> <?php print_bug_link($v_id); echo '<br />'; if (!bug_is_readonly($v_id) && access_has_bug_level($t_update_bug_threshold, $v_id)) { echo '<a href="' . string_get_bug_update_url($v_id) . '"><img border="0" src="' . $t_icon_path . 'update.png' . '" alt="' . lang_get('update_bug_button') . '" /></a>'; } if (ON == config_get('show_priority_text')) { print_formatted_priority_string($v_status, $v_priority); } else { print_status_icon($v_priority); } if (0 < $t_attachment_count) { echo '<a href="' . string_get_bug_view_url($v_id) . '#attachments">'; echo '<img border="0" src="' . $t_icon_path . 'attachment.png' . '"'; echo ' alt="' . lang_get('attachment_alt') . '"'; echo ' title="' . $t_attachment_count . ' ' . lang_get('attachments') . '"'; echo ' />'; echo '</a>'; } if (VS_PRIVATE == $v_view_state) { echo '<img src="' . $t_icon_path . 'protected.gif" width="8" height="15" alt="' . lang_get('private') . '" />'; } ?> </span> </td>
<td class="scrumcolumn" width="<?php echo $bug_percentage_by_column[$column] ?>%"> <?php $first = true; foreach ($statuses as $status): ?> <?php if (isset($bugs[$status]) || plugin_config_get("show_empty_status")): ?> <?php if ($first): $first = false; else: ?> <hr/> <?php endif ?> <?php $status_name = get_enum_element("status", $status); if ($status_name != $column): ?> <p class="scrumstatus"><?php echo get_enum_element("status", $status) ?></p> <?php endif ?> <?php if (isset($bugs[$status])) foreach ($bugs[$status] as $bug): $sevcolor = $sevcolors[$bug->severity]; $rescolor = $rescolors[$bug->resolution]; ?> <div class="scrumblock"> <p class="priority"><?php print_status_icon($bug->priority) ?></p> <p class="bugid"></p> <p class="commits"><?php echo $source_count[$bug->id] ?></p> <p class="category"> <?php if ($bug->project_id != $current_project) { $project_name = project_get_name($bug->project_id); echo "<span class=\"project\">{$project_name}</span> - "; } echo category_full_name($bug->category_id, false) ?> </p> <p class="summary"><?php echo print_bug_link($bug->id) ?>: <?php echo $bug->summary ?></p> <p class="severity" style="background: <?php echo $sevcolor ?>" title="Severity: <?php echo get_enum_element("severity", $bug->severity) ?>"></p> <p class="resolution" style="background: <?php echo $rescolor ?>" title="Resolution: <?php echo get_enum_element("resolution", $bug->resolution) ?>"></p> <p class="handler"><?php echo $bug->handler_id > 0 ? user_get_name($bug->handler_id) : "" ?></p> </div>