summaryrefslogtreecommitdiff
path: root/includes/view/ShiftCalendarShiftRenderer.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-09-16 17:14:45 +0200
committermsquare <msquare@notrademark.de>2017-09-16 17:14:45 +0200
commitdb8b6b25202efb2011d15afc28d748177b2bc819 (patch)
treeac42c6621a467631f6baab1efaea413dea418fd3 /includes/view/ShiftCalendarShiftRenderer.php
parent359160613027a480620e22deef19ff883eaaeb21 (diff)
change shift renderer global add user link
Diffstat (limited to 'includes/view/ShiftCalendarShiftRenderer.php')
-rw-r--r--includes/view/ShiftCalendarShiftRenderer.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php
index 0e5fc8c3..3e59d61a 100644
--- a/includes/view/ShiftCalendarShiftRenderer.php
+++ b/includes/view/ShiftCalendarShiftRenderer.php
@@ -124,14 +124,12 @@ class ShiftCalendarShiftRenderer
}
if (in_array('user_shifts_admin', $privileges)) {
- $html .= '<li class="list-group-item">' . _('Add more angels') . ':';
- foreach ($needed_angeltypes as $angeltype) {
- $html .= ' ' . button(
- page_link_to('user_shifts', ['shift_id' => $shift['SID'], 'type_id' => $angeltype['id']]),
- $angeltype['name'],
- 'btn-xs'
- );
- }
+ $html .= '<li class="list-group-item">';
+ $html .= button(
+ page_link_to('user_shifts', ['shift_id' => $shift['SID']]),
+ glyph('plus') . _('Add more angels'),
+ 'btn-xs'
+ );
$html .= '</li>';
}
if ($html != '') {