Is there anyway to distinguish the admins/devs/managers etc color in the ticket view?
Example:

There is no CSS class and I cannot figure out how to add one to specific groups?
Any help would be appreciated.
Moderators: Developer, Contributor

Code: Select all
tr .bnhl_10 { background-color: #ffffff; }
tr .bnhl_note_10 { background-color: #ffffff; }
tr .bnhl_25 { background-color: #ffffff; }
tr .bnhl_note_25 { background-color: #ffffff; }
tr .bnhl_40 { background-color: #ffffff; }
tr .bnhl_note_40 { background-color: #ffffff; }
tr .bnhl_55 { background-color: #ffffff; }
tr .bnhl_note_55 { background-color: #ffffff; }
tr .bnhl_70 { background-color: #ffffff; }
tr .bnhl_note_70 { background-color: #ffffff; }
tr .bnhl_90 { background-color: #c08603; }
tr .bnhl_note_90 { background-color: #f0a804; }Code: Select all
.bnhl_10 > td.bugnote-meta { background-color: #ffffff; }
.bnhl_10 > td.bugnote-note { background-color: #ffffff; }
.bnhl_25 > td.bugnote-meta { background-color: #ffffff; }
.bnhl_25 > td.bugnote-note { background-color: #ffffff; }
.bnhl_40 > td.bugnote-meta { background-color: #ffffff; }
.bnhl_40 > td.bugnote-note { background-color: #ffffff; }
.bnhl_55 > td.bugnote-meta { background-color: #ffffff; }
.bnhl_55 > td.bugnote-note { background-color: #ffffff; }
.bnhl_70 > td.bugnote-meta { background-color: #ffffff; }
.bnhl_70 > td.bugnote-note { background-color: #ffffff; }
.bnhl_90 > td.bugnote-meta { background-color: #c08603; }
.bnhl_90 > td.bugnote-note { background-color: #f0a804; }
Code: Select all
$this->requires = array(
'MantisCore' => '1.3.0',
);
Code: Select all
if( VS_PRIVATE == $t_bugnote->view_state ) {
$t_bugnote_css = 'bugnote-private';
} else {
$t_bugnote_css = 'bugnote-public';
# BugnoteHighlighting begin
if( plugin_is_loaded( 'BugnoteHighlighting' ) ){
$t_bnhl_class = event_signal( 'EVENT_BNHL_CHECK_ACCESS_LEVEL', array( $t_bugnote->reporter_id ) );
$t_bugnote_css .= $t_bnhl_class["BugnoteHighlighting"]["bnhlCheckAccessLevel"];
}
# Bugnote Highlighting end
}
Thanks, I would appreciate thatn - i - i wrote:The required changes are a bit more complicated now and I don't have the time at the moment. I'll try to look into it within the next few days, but I can't promise.

Code: Select all
.bnhl_10{ background-color: #000000 !important;}
.bnhl_10::after{ border-color: #000000 transparent #000000 !important; }
.bnhl_25{ background-color: #000000 !important; }
.bnhl_25::after{ border-color: #000000 transparent #000000 !important; }
.bnhl_40{ background-color: #000000 !important; }
.bnhl_40::after{ border-color: #000000 transparent #000000 !important; }
.bnhl_55{ background-color: #000000 !important; }
.bnhl_55::after{border-color: #000000 transparent #000000 !important; }
.bnhl_70{ background-color: #000000 !important; }
.bnhl_70::after{border-color: #000000 transparent #000000 !important; }
.bnhl_90{ background-color: #FF0000 !important; }
.bnhl_90::after{ border-color: #FF0000 transparent #FF0000 !important; }
Code: Select all
if( user_exists( $t_activity['user_id'] ) ) {
$t_access_level = access_get_project_level( null, $t_activity['user_id'] );
$t_label = layout_is_rtl() ? 'arrowed-right' : 'arrowed-in-right';
#Bugnote Highlighting begin
if( plugin_is_loaded('BugnoteHighlighting' ) ){
$t_bnhl_class = event_signal( "EVENT_BNHL_CHECK_ACCESS_LEVEL", array( $t_access_level ) );
$t_label .= $t_bnhl_class['BugnoteHighlighting']['bnhlCheckAccessLevel'];
}
#Bugnote Highlighting end
echo '<span class="label label-sm label-default ' . $t_label . '">', access_level_get_string( $t_access_level ), '</span>';
}