Fix etime/wtime/rtime reports

beta
Vitaliy Filippov 2018-05-23 15:01:56 +03:00
parent 3f66ba7490
commit a4f77c4340
4 changed files with 7 additions and 2 deletions

View File

@ -225,7 +225,7 @@ sub execute
} }
# If the user has no access to the measured column, reset it to 'count' # If the user has no access to the measured column, reset it to 'count'
if (!Bugzilla::Search->COLUMNS($runner)->{$measures->{$measure}}) if (!Bugzilla::Search->COLUMNS($runner)->{$measure eq 'times' ? 'remaining_time' : $measures->{$measure}})
{ {
$measure = 'count'; $measure = 'count';
} }

View File

@ -61,3 +61,7 @@
vertical-align: middle; vertical-align: middle;
min-width: 8em; min-width: 8em;
} }
table.report td {
min-width: 2em;
}

View File

@ -73,7 +73,7 @@ END; %]
[% row_idx = 0 %] [% row_idx = 0 %]
[% mlist = (measure == 'times' ? [ 'etime', 'wtime', 'rtime' ] : [ measure ]) %] [% mlist = (measure == 'times' ? [ 'etime', 'wtime', 'rtime' ] : [ measure ]) %]
<table border="1" style="border-collapse: collapse"> <table class="report" border="1" style="border-collapse: collapse">
[% IF col_field %] [% IF col_field %]
<tr> <tr>
<td class="[% classes.$row_idx.$col_idx %]"> <td class="[% classes.$row_idx.$col_idx %]">

View File

@ -66,6 +66,7 @@
.t4 { background-color: #c3d3ed } /* darker blue */ .t4 { background-color: #c3d3ed } /* darker blue */
.ttotal { background-color: #cfffdf } /* light green */ .ttotal { background-color: #cfffdf } /* light green */
" "
style_urls = ['skins/standard/reports.css']
header_addl_info = time header_addl_info = time
%] %]