summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-12-26 01:56:16 +0100
committerPhilip Häusler <msquare@notrademark.de>2014-12-26 01:56:16 +0100
commit7cb3a772ed3a42c1182cd97e65c8b614cfb24b93 (patch)
tree1a0a049ea47bf54d9c226d28fb142cdd95403fc7
parent4ce9c7da87dda149447086796f16f545431f5f2f (diff)
integrate vouche into user state
-rw-r--r--includes/view/User_view.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/view/User_view.php b/includes/view/User_view.php
index 52e7a2dc..0c395888 100644
--- a/includes/view/User_view.php
+++ b/includes/view/User_view.php
@@ -175,6 +175,7 @@ function User_view($user_source, $admin_user_privilege, $freeloader, $user_angel
($admin_user_privilege && $freeloader) ? '<span class="text-danger"><span class="glyphicon glyphicon-exclamation-sign"></span> ' . _("Freeloader") . '</span><br />' : '',
$user_source['Gekommen'] ? User_shift_state_render($user_source) . '<br />' : '',
($user_source['Gekommen'] ? '<span class="text-success"><span class="glyphicon glyphicon-home"></span> ' . _("Arrived") . '</span>' : '<span class="text-danger">' . _("Not arrived") . '</span>'),
+ ($user_source['got_voucher'] && $admin_user_privilege) ? '<br /><span class="text-success">' . glyph('cutlery') . _("Got vouchers") . '</span>' : '<br /><span class="text-danger">' . _("Got no vouchers") . '</span>',
($user_source['Gekommen'] && $admin_user_privilege && $user_source['Aktiv']) ? ' <span class="text-success">' . _("Active") . '</span>' : '',
($user_source['Gekommen'] && $admin_user_privilege && $user_source['Tshirt']) ? ' <span class="text-success">' . _("T-Shirt") . '</span>' : ''
)),