small improvements of user view

This commit is contained in:
msquare 2017-12-29 13:12:56 +01:00
parent b59d17918e
commit 3993e553d1
2 changed files with 4 additions and 1 deletions

View File

@ -227,7 +227,6 @@ function user_controller()
if($user_source['force_active']) { if($user_source['force_active']) {
$tshirt_score = _('Enough'); $tshirt_score = _('Enough');
success(_('You have done enough to get a t-shirt.'));
} else { } else {
$tshirt_score = round(User_tshirt_score($user_source), 2) . ' h'; $tshirt_score = round(User_tshirt_score($user_source), 2) . ' h';
} }

View File

@ -419,6 +419,10 @@ function User_view_myshifts($shifts, $user_source, $its_me, $tshirt_score, $tshi
$timesum += ($shift['end'] - $shift['start']); $timesum += ($shift['end'] - $shift['start']);
} }
} }
if($user_source['force_active']) {
$myshifts_table[] = success(_('You have done enough to get a t-shirt.'), true);
}
if (count($myshifts_table) > 0) { if (count($myshifts_table) > 0) {
$myshifts_table[] = [ $myshifts_table[] = [