From 440029d6d6bdc15fd4d96088df94ad3afd25097e Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sat, 19 Oct 2013 19:34:15 +0200 Subject: [PATCH] Small changes to users presentation - Fixed W3C validation in user list - Fixed post CSS were not included - Added link to delete account under "options" (for consistency sake) --- src/Controllers/UserController.php | 1 + src/Views/user-list.phtml | 2 +- src/Views/user-view.phtml | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Controllers/UserController.php b/src/Controllers/UserController.php index 461cd361..c618504c 100644 --- a/src/Controllers/UserController.php +++ b/src/Controllers/UserController.php @@ -321,6 +321,7 @@ class UserController PrivilegesHelper::confirmWithException(Privilege::ViewUser, PrivilegesHelper::getIdentitySubPrivilege($user)); $this->context->stylesheets []= 'user-view.css'; $this->context->stylesheets []= 'post-list.css'; + $this->context->stylesheets []= 'post-small.css'; $this->context->stylesheets []= 'paginator.css'; if ($this->config->browsing->endlessScrolling) $this->context->scripts []= 'paginator-endless.js'; diff --git a/src/Views/user-list.phtml b/src/Views/user-list.phtml index 8a5d7603..96535c85 100644 --- a/src/Views/user-list.phtml +++ b/src/Views/user-list.phtml @@ -32,7 +32,7 @@ context->transport->users as $user): ?>
- <?php echo $user->name ?> + <?php echo $user->name ?>

diff --git a/src/Views/user-view.phtml b/src/Views/user-view.phtml index 3e2edb2b..c202f0f3 100644 --- a/src/Views/user-view.phtml +++ b/src/Views/user-view.phtml @@ -57,6 +57,14 @@ + context->transport->user))): ?> +
  • + + Delete account + +
  • + + context->transport->user))): ?> context->transport->user->banned): ?>