summaryrefslogtreecommitdiff
path: root/includes/view/User_view.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/view/User_view.php')
-rw-r--r--includes/view/User_view.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/includes/view/User_view.php b/includes/view/User_view.php
index eda29d58..20a6de6e 100644
--- a/includes/view/User_view.php
+++ b/includes/view/User_view.php
@@ -1,5 +1,10 @@
<?php
+function User_view($user_source) {
+ $user_name = htmlspecialchars($user_source['Vorname']) . " " . htmlspecialchars($user_source['Name']);
+ return page_with_title('<span class="icon-icon_angel"></span> ' . htmlspecialchars($user_source['Nick']) . ' <small>' . $user_name . '</small>', array());
+}
+
/**
* Available T-Shirt sizes
*/
@@ -23,7 +28,7 @@ $tshirt_sizes = array(
* View for password recovery step 1: E-Mail
*/
function User_password_recovery_view() {
- return page(array(
+ return page_with_title(user_password_recovery_title(), array(
msg(),
_("We will send you an e-mail with a password recovery link. Please use the email address you used for registration."),
form(array(
@@ -37,7 +42,7 @@ function User_password_recovery_view() {
* View for password recovery step 2: New password
*/
function User_password_set_view() {
- return page(array(
+ return page_with_title(user_password_recovery_title(), array(
msg(),
_("Please enter a new password."),
form(array(
@@ -67,7 +72,7 @@ function User_Avatar_render($user) {
function User_Nick_render($user_source) {
global $user, $privileges;
if ($user['UID'] == $user_source['UID'] || in_array('user_shifts_admin', $privileges))
- return '<a href="' . page_link_to('user_myshifts') . '&amp;id=' . $user_source['UID'] . '">' . htmlspecialchars($user_source['Nick']) . '</a>';
+ return '<a href="' . page_link_to('user_myshifts') . '&amp;id=' . $user_source['UID'] . '"><span class="icon-icon_angel"></span> ' . htmlspecialchars($user_source['Nick']) . '</a>';
else
return htmlspecialchars($user_source['Nick']);
}