diff options
author | Philip Häusler <msquare@notrademark.de> | 2014-12-07 16:15:16 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2014-12-07 16:15:20 +0100 |
commit | 663526246b9349141b96880a2cdfa90340c447ba (patch) | |
tree | 9824fb750d0c0f29a62d177044cfb9dd06bb27da /includes | |
parent | 1c18ce26ed59f64126f25cb7e5c0aaff25a56b30 (diff) |
add settings button to user page
Diffstat (limited to 'includes')
-rw-r--r-- | includes/view/User_view.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/includes/view/User_view.php b/includes/view/User_view.php index 90cdb498..f2d14a64 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -185,9 +185,10 @@ function User_view($user_source, $admin_user_privilege, $freeloader, $user_angel buttons(array( $admin_user_privilege ? button(page_link_to('admin_user') . '&id=' . $user_source['UID'], glyph("edit") . _("edit")) : '', ! $user_source['Gekommen'] ? button(page_link_to('admin_arrive') . '&arrived=' . $user_source['UID'], _("arrived")) : '', - $its_me ? button(page_link_to_absolute('ical') . '&key=' . $user_source['api_key'], glyph('calendar') . _("iCal Export")) : '', - $its_me ? button(page_link_to_absolute('shifts_json_export') . '&key=' . $user_source['api_key'], glyph('export') . _("JSON Export")) : '', - $its_me ? button(page_link_to_absolute('user_myshifts') . '&reset', glyph('repeat') . _('Reset API key')) : '' + $its_me ? button(page_link_to('user_settings'), glyph('list-alt') . _("Settings")) : '', + $its_me ? button(page_link_to('ical') . '&key=' . $user_source['api_key'], glyph('calendar') . _("iCal Export")) : '', + $its_me ? button(page_link_to('shifts_json_export') . '&key=' . $user_source['api_key'], glyph('export') . _("JSON Export")) : '', + $its_me ? button(page_link_to('user_myshifts') . '&reset', glyph('repeat') . _('Reset API key')) : '' )) )) )), |