From: <pre...@us...> - 2002-06-07 03:28:41
|
Update of /cvsroot/mantisbt/mantisbt In directory usw-pr-cvs1:/tmp/cvs-serv14568 Modified Files: bugnote_inc.php css_inc.php Log Message: modified layout for bugnotes. trimmed html use Index: bugnote_inc.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bugnote_inc.php,v retrieving revision 1.56 retrieving revision 1.57 diff -u -d -r1.56 -r1.57 --- bugnote_inc.php 7 Jun 2002 03:10:56 -0000 1.56 +++ bugnote_inc.php 7 Jun 2002 03:28:37 -0000 1.57 @@ -70,43 +70,42 @@ $t_bugnote_note_css = 'bugnote-note-public'; } ?> -<tr> - <td class="bugnote" valign="top" width="100%"> - <table class="hide" cellspacing="0"> - <tr valign="top"> - <td class="<?php echo $t_bugnote_css ?>"> - <?php print_user( $v3_reporter_id ) ?> - <?php if ( PRIVATE == $v3_view_state ) { ?> - <span class="small">[ <?php echo $s_private ?> ]</span> - <?php } ?> - <br /> - <span class="small"><?php echo $v3_date_submitted ?></span><br /><br /> - <span class="small"> - <?php - # only admins and the bugnote creator can edit/delete this bugnote - # bug must be open to be editable - if ( get_bug_field( $f_id, 'status' ) < RESOLVED ) { - if (( access_level_check_greater_or_equal( ADMINISTRATOR ) ) || - ( $v3_reporter_id == $t_user_id )) { - print_bracket_link( 'bugnote_edit_page.php?f_bugnote_text_id='.$v3_bugnote_text_id.'&f_id='.$f_id.'&f_bugnote_id='.$v3_id, $s_bugnote_edit_link ); - print_bracket_link( 'bugnote_delete.php?f_bugnote_id='.$v3_id.'&f_id='.$f_id, $s_delete_link ); - if ( access_level_check_greater_or_equal( $g_private_bugnote_threshold ) ) { - if ( PRIVATE == $v3_view_state ) { - print_bracket_link('bugnote_set_view_state.php?f_private=0&f_bugnote_id='.$v3_id, $s_make_public); - } else { - print_bracket_link('bugnote_set_view_state.php?f_private=1&f_bugnote_id='.$v3_id, $s_make_private); - } - } +<tr class="bugnote"> + <td class="<?php echo $t_bugnote_css ?>"> + <?php print_user( $v3_reporter_id ) ?> + <?php if ( PRIVATE == $v3_view_state ) { ?> + <span class="small">[ <?php echo $s_private ?> ]</span> + <?php } ?> + <br /> + <span class="small"><?php echo $v3_date_submitted ?></span><br /><br /> + <span class="small"> + <?php + # only admins and the bugnote creator can edit/delete this bugnote + # bug must be open to be editable + if ( get_bug_field( $f_id, 'status' ) < RESOLVED ) { + if (( access_level_check_greater_or_equal( ADMINISTRATOR ) ) || + ( $v3_reporter_id == $t_user_id )) { + print_bracket_link( 'bugnote_edit_page.php?f_bugnote_text_id='.$v3_bugnote_text_id.'&f_id='.$f_id.'&f_bugnote_id='.$v3_id, $s_bugnote_edit_link ); + print_bracket_link( 'bugnote_delete.php?f_bugnote_id='.$v3_id.'&f_id='.$f_id, $s_delete_link ); + if ( access_level_check_greater_or_equal( $g_private_bugnote_threshold ) ) { + if ( PRIVATE == $v3_view_state ) { + print_bracket_link('bugnote_set_view_state.php?f_private=0&f_bugnote_id='.$v3_id, $s_make_public); + } else { + print_bracket_link('bugnote_set_view_state.php?f_private=1&f_bugnote_id='.$v3_id, $s_make_private); } } - ?> - </span> - </td> - <td class="<?php echo $t_bugnote_note_css ?>"> - <?php echo $v3_note ?> - </td> - </tr> - </table> + } + } + ?> + </span> + </td> + <td class="<?php echo $t_bugnote_note_css ?>"> + <?php echo $v3_note ?> + </td> +</tr> +<tr> + <td class="spacer" colspan="2"> + </td> </tr> <?php Index: css_inc.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/css_inc.php,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- css_inc.php 6 Jun 2002 03:02:29 -0000 1.35 +++ css_inc.php 7 Jun 2002 03:28:38 -0000 1.36 @@ -66,9 +66,9 @@ tr.print { vertical-align: top; } tr.print-category { color: <?php echo $g_font_color ?>; font-weight: bold; } -td.bugnote { background-color: <?php echo $g_background_color ?>; width: 100%; padding: 0px; padding-bottom: 4px;} -td.bugnote-public { background-color: <?php echo $g_category_title_color ?>; color: <?php echo $g_font_color ?>; font-weight: bold; width: 25%; } -td.bugnote-private { background-color: <?php echo $g_primary_color2 ?>; color: <?php echo $g_font_color ?>; font-weight: bold; width: 25%; } +tr.bugnote { vertical-align: top; } +td.bugnote-public { background-color: <?php echo $g_category_title_color ?>; color: <?php echo $g_font_color ?>; font-weight: bold; width: 25%; line-height: 1.4; } +td.bugnote-private { background-color: <?php echo $g_primary_color2 ?>; color: <?php echo $g_font_color ?>; font-weight: bold; width: 25%; line-height: 1.4; } td.bugnote-note-public { background-color: <?php echo $g_primary_color2 ?>; color: <?php echo $g_font_color ?>; width: 75%; } td.bugnote-note-private { background-color: <?php echo $g_primary_color2 ?>; color: <?php echo $g_font_color ?>; width: 75%; } |