]> git.mxchange.org Git - friendica.git/commitdiff
The username is now a link
authorMichael Vogel <icarus@dabo.de>
Mon, 26 Oct 2015 22:11:42 +0000 (23:11 +0100)
committerMichael Vogel <icarus@dabo.de>
Mon, 26 Oct 2015 22:11:42 +0000 (23:11 +0100)
mod/manage.php
view/templates/manage.tpl

index bfa4d1475c891f3de026fd48d8fa8e14c0acc4d5..c0eedc2ba07ebcfecaa4b05cd44ab428c844ef5d 100644 (file)
@@ -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
index b1ccff519547b48aec6521a8b9469f0b085ca3ad..e23c4027548212284f74df45226598c331fcab98 100644 (file)
@@ -9,7 +9,7 @@
        {{foreach $identities as $id}}
                <div class="itentity-match-wrapper {{if $id.selected}}selected-identity{{/if}}" id="identity-match-{{$id.uid}}">
                        <div class="identity-match-photo" id="identity-match-photo-{{$id.uid}}">
-                               <button role="menuitem" name="identity" value="{{$id.uid}}" onclick="this.form.submit();" title="{{$id.username}}">
+                               <button name="identity" value="{{$id.uid}}" onclick="this.form.submit();" title="{{$id.username}}">
                                        <img src="{{$id.thumb}}" alt="{{$id.username}}" />
                                </button>
                        </div>
@@ -17,7 +17,9 @@
                        <div class="identity-match-break"></div>
 
                        <div class="identity-match-desc">
-                               <div class="identity-match-name" id="identity-match-name-{{$id.uid}}">{{$id.username}}</div>
+                               <div class="identity-match-name" id="identity-match-name-{{$id.uid}}">
+                                       {{if $id.selected}}{{$id.username}}{{else}}<a role="menuitem" href="manage?identity={{$id.uid}}">{{$id.username}}</a>{{/if}}
+                               </div>
                                <div class="identity-match-details" id="identity-match-nick-{{$id.uid}}">({{$id.nickname}})</div>
                        </div>