small improvements of user view

main
msquare 7 years ago
parent b59d17918e
commit 3993e553d1

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

@ -420,6 +420,10 @@ function User_view_myshifts($shifts, $user_source, $its_me, $tshirt_score, $tshi
}
}
if($user_source['force_active']) {
$myshifts_table[] = success(_('You have done enough to get a t-shirt.'), true);
}
if (count($myshifts_table) > 0) {
$myshifts_table[] = [
'date' => '<b>' . _('Sum:') . '</b>',

Loading…
Cancel
Save