summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-29 13:12:56 +0100
committermsquare <msquare@notrademark.de>2017-12-29 13:12:56 +0100
commit3993e553d1649ec01d49d9640547cd19392d3f9e (patch)
tree5e7f62048d532657cd22f453e442e48837d54084 /includes
parentb59d17918eac02e607ca6ca5919dfe96ee1bbfd3 (diff)
small improvements of user view
Diffstat (limited to 'includes')
-rw-r--r--includes/controller/users_controller.php1
-rw-r--r--includes/view/User_view.php4
2 files changed, 4 insertions, 1 deletions
diff --git a/includes/controller/users_controller.php b/includes/controller/users_controller.php
index 5bc2e06f..a2a28410 100644
--- a/includes/controller/users_controller.php
+++ b/includes/controller/users_controller.php
@@ -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';
}
diff --git a/includes/view/User_view.php b/includes/view/User_view.php
index 8d47dc47..71bee3a0 100644
--- a/includes/view/User_view.php
+++ b/includes/view/User_view.php
@@ -419,6 +419,10 @@ function User_view_myshifts($shifts, $user_source, $its_me, $tshirt_score, $tshi
$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) {
$myshifts_table[] = [