From 99ee45e627debddf45409d171d73477ffab6248e Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 26 Oct 2015 23:11:42 +0100 Subject: [PATCH] The username is now a link --- mod/manage.php | 6 ++++++ view/templates/manage.tpl | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mod/manage.php b/mod/manage.php index bfa4d1475c..c0eedc2ba0 100644 --- a/mod/manage.php +++ b/mod/manage.php @@ -97,6 +97,12 @@ function manage_content(&$a) { return; } + if ($_GET['identity']) { + $_POST['identity'] = $_GET['identity']; + manage_post($a); + return; + } + $identities = $a->identities; //getting additinal information for each identity diff --git a/view/templates/manage.tpl b/view/templates/manage.tpl index b1ccff5195..e23c402754 100644 --- a/view/templates/manage.tpl +++ b/view/templates/manage.tpl @@ -9,7 +9,7 @@ {{foreach $identities as $id}}
-
@@ -17,7 +17,9 @@
-
{{$id.username}}
+
+ {{if $id.selected}}{{$id.username}}{{else}}{{$id.username}}{{/if}} +
({{$id.nickname}})