View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008078 | mantisbt | bugtracker | public | 2007-06-19 07:03 | 2010-06-23 19:16 |
Reporter | kan | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 1.0.6 | ||||
Summary | 0008078: Display "Resolution" with different colors | ||||
Description | I have a problem then users don't pay attention to Resolution while testing. Most resolutions are 'fixed', so I highlighted with colour for some non-usual resolutions like 'suspended'. Patch is attached. | ||||
Tags | No tags attached. | ||||
Attached Files | resolution-color.patch (3,394 bytes)
diff -u mantis-1.0.6\bug_update_advanced_page.php mantis\bug_update_advanced_page.php --- mantis-1.0.6\bug_update_advanced_page.php Sun Jun 12 22:04:42 2005 +++ mantis\bug_update_advanced_page.php Tue Jun 19 11:50:32 2007 @@ -217,7 +217,7 @@ <td class="category"> <?php echo lang_get( 'resolution' ) ?> </td> - <td> + <td bgcolor="<?php echo get_resolution_color( $t_bug->resolution ) ?>"> <select name="resolution"> <?php print_enum_string_option_list( "resolution", $t_bug->resolution ) ?> </select> diff -u mantis-1.0.6\bug_update_page.php mantis\bug_update_page.php --- mantis-1.0.6\bug_update_page.php Sun Jun 12 22:04:42 2005 +++ mantis\bug_update_page.php Tue Jun 19 11:50:59 2007 @@ -221,7 +221,7 @@ <td class="category"> <?php echo lang_get( 'resolution' ) ?> </td> - <td> + <td bgcolor="<?php echo get_resolution_color( $t_bug->resolution ) ?>"> <select name="resolution"> <?php print_enum_string_option_list( "resolution", $t_bug->resolution ) ?> </select> diff -u mantis-1.0.6\bug_view_advanced_page.php mantis\bug_view_advanced_page.php --- mantis-1.0.6\bug_view_advanced_page.php Sun Jan 01 03:58:50 2006 +++ mantis\bug_view_advanced_page.php Tue Jun 19 11:30:18 2007 @@ -231,7 +231,7 @@ <td class="category"> <?php echo lang_get( 'resolution' ) ?> </td> - <td> + <td bgcolor="<?php echo get_resolution_color( $t_bug->resolution ) ?>"> <?php echo get_enum_element( 'resolution', $t_bug->resolution ) ?> </td> diff -u mantis-1.0.6\bug_view_inc.php mantis\bug_view_inc.php --- mantis-1.0.6\bug_view_inc.php Sat Feb 12 21:01:04 2005 +++ mantis\bug_view_inc.php Tue Jun 19 11:49:15 2007 @@ -145,7 +145,7 @@ <td class="category"> <?php echo lang_get( 'resolution' ) ?> </td> - <td> + <td bgcolor="<?php echo get_resolution_color( $t_bug->resolution ) ?>"> <?php echo get_enum_element( 'resolution', $t_bug->resolution ) ?> </td> diff -u mantis-1.0.6\bug_view_page.php mantis\bug_view_page.php --- mantis-1.0.6\bug_view_page.php Sun Jan 01 03:58:50 2006 +++ mantis\bug_view_page.php Tue Jun 19 11:45:55 2007 @@ -232,7 +232,7 @@ <td class="category"> <?php echo lang_get( 'resolution' ) ?> </td> - <td> + <td bgcolor="<?php echo get_resolution_color( $t_bug->resolution ) ?>"> <?php echo get_enum_element( 'resolution', $t_bug->resolution ) ?> </td> diff -u mantis-1.0.6\config_defaults_inc.php mantis\config_defaults_inc.php --- mantis-1.0.6\config_defaults_inc.php Sun Oct 29 01:20:28 2006 +++ mantis\config_defaults_inc.php Tue Jun 19 11:40:58 2007 @@ -1157,6 +1157,19 @@ 'resolved' => '#cceedd', # buish-green 'closed' => '#e8e8e8'); # light gray + # --- resolution color codes ---------- + # + $g_resolution_colors = array( + 'open' => '#e8e8e8', + 'fixed' => '#e8e8e8', + 'reopened' => '#e8e8e8', + 'unable to duplicate' => '#c8c8ff', + 'not fixable' => '#ffffb0', + 'duplicate' => '#ffffff', + 'not a bug' => '#ffd850', + 'suspended' => '#ffa0a0', + 'wont fix' => '#ff50a8'); + # The padding level when displaying project ids # The bug id will be padded with 0's up to the size given $g_display_project_padding = 3; | ||||