From ac744b61f91f95df40fcbc728f4a782dcedcbaaf Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 26 Oct 2015 08:16:37 +0100 Subject: [PATCH 1/2] Some small optical and structural changes to the manage template --- view/global.css | 1 + view/templates/manage.tpl | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/view/global.css b/view/global.css index 477f778d9a..e1ccd8b920 100644 --- a/view/global.css +++ b/view/global.css @@ -252,6 +252,7 @@ a { background: none; height: 80px; width: 80px; + cursor: pointer; } .selected-identity img { diff --git a/view/templates/manage.tpl b/view/templates/manage.tpl index 8a7922d7be..b1ccff5195 100644 --- a/view/templates/manage.tpl +++ b/view/templates/manage.tpl @@ -3,13 +3,13 @@
{{$desc}}
{{$choose}}
-
+ - - \ No newline at end of file From 99ee45e627debddf45409d171d73477ffab6248e Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 26 Oct 2015 23:11:42 +0100 Subject: [PATCH 2/2] 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}})