Merge pull request #7727 from MrPetovan/task/4090-move-manage-to-src
Move mod/manage to src/Module/Delegation
This commit is contained in:
commit
fed486bfc5
31 changed files with 370 additions and 254 deletions
37
view/templates/delegation.tpl
Normal file
37
view/templates/delegation.tpl
Normal file
|
@ -0,0 +1,37 @@
|
|||
|
||||
<h3>{{$title}}</h3>
|
||||
<div id="identity-delegation-desc">{{$desc nofilter}}</div>
|
||||
<div id="identity-delegation-choose">{{$choose}}</div>
|
||||
|
||||
<div id="identity-selector-wrapper" role="menu">
|
||||
<form action="delegation" method="post">
|
||||
|
||||
{{foreach $identities as $identity}}
|
||||
<div class="itentity-match-wrapper {{if $identity.selected}}selected-identity{{/if}}" id="identity-match-{{$identity.uid}}">
|
||||
<div class="identity-match-photo" id="identity-match-photo-{{$identity.uid}}">
|
||||
<button type="submit" name="identity" value="{{$identity.uid}}" title="{{$identity.username}}">
|
||||
<img src="{{$identity.thumb}}" alt="{{$identity.username}}" />
|
||||
{{if $identity.notifications}}<span class="delegation-notify badge">{{$identity.notifications}}</span>{{/if}}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="identity-match-break"></div>
|
||||
|
||||
<div class="identity-match-desc">
|
||||
<div class="identity-match-name" id="identity-match-name-{{$identity.uid}}">
|
||||
{{if $identity.selected}}
|
||||
{{$identity.username}}
|
||||
{{else}}
|
||||
<button type="submit" name="identity" class="btn-link" value="{{$identity.uid}}">{{$identity.username}}</button>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="identity-match-details" id="identity-match-nick-{{$identity.uid}}">({{$identity.nickname}})</div>
|
||||
</div>
|
||||
<div class="identity-match-end"></div>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
|
||||
<div class="identity-match-break"></div>
|
||||
|
||||
</form>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
|
||||
<h3>{{$title}}</h3>
|
||||
<div id="identity-manage-desc">{{$desc nofilter}}</div>
|
||||
<div id="identity-manage-choose">{{$choose}}</div>
|
||||
|
||||
<div id="identity-selector-wrapper" role="menu">
|
||||
<form action="manage" method="post" >
|
||||
|
||||
{{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 name="identity" value="{{$id.uid}}" onclick="this.form.submit();" title="{{$id.username}}">
|
||||
<img src="{{$id.thumb}}" alt="{{$id.username}}" />
|
||||
{{if $id.notifications}}<span class="manage-notify badge">{{$id.notifications}}</span>{{/if}}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="identity-match-break"></div>
|
||||
|
||||
<div class="identity-match-desc">
|
||||
<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>
|
||||
<div class="identity-match-end"></div>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
|
||||
<div class="identity-match-break"></div>
|
||||
|
||||
</form>
|
||||
</div>
|
|
@ -44,7 +44,7 @@
|
|||
|
||||
|
||||
|
||||
{{if $nav.manage}}<a id="nav-manage-link" class="nav-commlink {{$nav.manage.2}} {{$sel.manage}}" href="{{$nav.manage.0}}" title="{{$nav.manage.3}}">{{$nav.manage.1}}</a>{{/if}}
|
||||
{{if $nav.delegation}}<a id="nav-delegation-link" class="nav-commlink {{$nav.delegation.2}} {{$sel.delegation}}" href="{{$nav.delegation.0}}" title="{{$nav.delegation.3}}">{{$nav.delegation.1}}</a>{{/if}}
|
||||
|
||||
|
||||
{{if $nav.notifications}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue