-
Notifications
You must be signed in to change notification settings - Fork 0
/
__minecraftUserAddSection.tpl
39 lines (36 loc) · 1.62 KB
/
__minecraftUserAddSection.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{if $action == 'edit' && $__wcf->getSession()->getPermission('admin.minecraftLinker.canManage') && MINECRAFT_LINKER_ENABLED && MINECRAFT_LINKER_IDENTITY}
<section class="section">
<h2 class="sectionTitle">{lang}wcf.page.userAddSection.minecraft.sectionTitle{/lang}</h2>
<a href="{if !$userID|empty}{link controller='MinecraftUserAdd' id=$userID}{/link}{/if}" class="button"><span class="icon icon16 fa-plus"></span> <span>{lang}wcf.page.userAddSection.minecraft.add{/lang}</span></a><br><br>
{if $minecraftUsers|count > 0}
<div class="tabularBox">
<table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\user\minecraft\MinecraftUserAction">
<thead>
<tr>
<th></th>
<th>{lang}wcf.page.userAddSection.minecraft.id{/lang}</th>
<th>{lang}wcf.page.userAddSection.minecraft.title{/lang}</th>
<th>{lang}wcf.page.userAddSection.minecraft.uuid{/lang}</th>
<th>{lang}wcf.page.userAddSection.minecraft.connectedSince{/lang}</th>
</tr>
</thead>
<tbody>
{foreach from=$minecraftUsers item=minecraftUser}
<tr class="jsObjectActionObject" data-object-id="{@$minecraftUser->minecraftUserID}">
<td>
{objectAction action="delete" objectTitle=$minecraftUser->title}
</td>
<td>{@$minecraftUser->minecraftUserID}</td>
<td>{$minecraftUser->title}</td>
<td>{@$minecraftUser->minecraftUUID}</td>
<td>{@$minecraftUser->createdDate|time}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{else}
<p class="info">{lang}wcf.global.noItems{/lang}</p>
{/if}
</section>
{/if}