You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
3.3 KiB
Smarty

<div class="account">
<!-- IMPORT partials/account/header.tpl -->
<!-- IF sessions.length -->
<div class="row">
<div class="col-xs-12 col-md-12">
<h4>[[global:sessions]]</h4>
<ul class="list-group" component="user/sessions">
<!-- BEGIN sessions -->
<li class="list-group-item" data-uuid="{../uuid}">
<div class="pull-right">
<!-- IF !../current -->
<button class="btn btn-xs btn-default" type="button" data-action="revokeSession">Revoke Session</button>
<!-- ENDIF !../current -->
{function.userAgentIcons}
<i class="fa fa-circle text-<!-- IF ../current -->success<!-- ELSE -->muted<!-- ENDIF ../current -->"></i>
</div>
{../browser} {../version} on {../platform}<br />
<small class="timeago text-muted" title="{../datetimeISO}"></small>
<ul>
<li><strong>[[global:ip_address]]</strong>: {../ip}</li>
</ul>
</li>
<!-- END sessions -->
</ul>
</div>
</div>
<!-- ENDIF sessions.length -->
<div class="row">
<div class="col-sm-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">[[global:recentips]]</h3>
</div>
<div class="panel-body">
<ul>
<!-- BEGIN ips -->
<li>@value</li>
<!-- END ips -->
</ul>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">[[user:info.latest-flags]]</h3>
</div>
<div class="panel-body">
<!-- IF history.flags.length -->
<ul class="recent-flags">
<!-- BEGIN history.flags -->
<li>
<p>
<a class="title" href="{config.relative_path}/post/{../pid}">{../title}</a><br />
<span class="timestamp">Flagged <span class="timeago" title="{../timestampISO}"></span> ({../timestampReadable})</span>
</p>
</li>
<!-- END history.flags -->
</ul>
<!-- ELSE -->
<div class="alert alert-success">[[user:info.no-flags]]</div>
<!-- ENDIF history.flags.length -->
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
[[user:info.ban-history]]
<!-- IF !banned -->
<!-- IF !isSelf -->
<button class="btn btn-xs pull-right btn-danger" component="account/ban">[[user:ban_account]]</button>
<!-- ENDIF !isSelf -->
<!-- ELSE -->
<!-- IF !isSelf -->
<button class="btn btn-xs pull-right btn-success" component="account/unban">[[user:unban_account]]</button>
<!-- ENDIF !isSelf -->
<!-- ENDIF !banned -->
</h3>
</div>
<div class="panel-body">
<!-- IF history.bans.length -->
<ul class="ban-history">
<!-- BEGIN history.bans -->
<li>
<p>
<span class="timestamp timeago" title="{../timestampISO}"></span> &mdash; {../timestampReadable}<br />
<!-- IF ../until -->
<span class="expiry">[[user:info.banned-until, {../untilReadable}]]</span>
<!-- ELSE -->
<span class="expiry">[[user:info.banned-permanently]]</span>
<!-- ENDIF ../until -->
</p>
</li>
<!-- END history.bans -->
</ul>
<!-- ELSE -->
<div class="alert alert-success">[[user:info.no-ban-history]]</div>
<!-- ENDIF history.bans.length -->
</div>
</div>
</div>
</div>
</div>