The username is now a link

This commit is contained in:
Michael Vogel 2015-10-26 23:11:42 +01:00
parent ac744b61f9
commit 99ee45e627
2 changed files with 10 additions and 2 deletions

View file

@ -97,6 +97,12 @@ function manage_content(&$a) {
return; return;
} }
if ($_GET['identity']) {
$_POST['identity'] = $_GET['identity'];
manage_post($a);
return;
}
$identities = $a->identities; $identities = $a->identities;
//getting additinal information for each identity //getting additinal information for each identity

View file

@ -9,7 +9,7 @@
{{foreach $identities as $id}} {{foreach $identities as $id}}
<div class="itentity-match-wrapper {{if $id.selected}}selected-identity{{/if}}" id="identity-match-{{$id.uid}}"> <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}}"> <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}}" /> <img src="{{$id.thumb}}" alt="{{$id.username}}" />
</button> </button>
</div> </div>
@ -17,7 +17,9 @@
<div class="identity-match-break"></div> <div class="identity-match-break"></div>
<div class="identity-match-desc"> <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 class="identity-match-details" id="identity-match-nick-{{$id.uid}}">({{$id.nickname}})</div>
</div> </div>