hardlounge/client/views/session.tpl

26 lines
449 B
Smarty
Raw Normal View History

2017-08-15 09:44:29 +00:00
<p>
<button
class="btn pull-right remove-session"
{{#unless current}}data-token="{{token}}"{{/unless}}
>
{{#if current}}
Sign out
{{else}}
Revoke
{{/if}}
</button>
2017-08-15 09:44:29 +00:00
<strong>{{agent}}</strong>
2017-08-15 09:44:29 +00:00
<a href="https://ipinfo.io/{{ip}}" target="_blank" rel="noopener">{{ip}}</a>
{{#unless current}}
2017-08-15 09:44:29 +00:00
<br>
{{#if active}}
<em>Currently active</em>
{{else}}
Last used on <time>{{localetime lastUse}}</time>
{{/if}}
{{/unless}}
2017-08-15 09:44:29 +00:00
</p>