thelounge/client/views/actions/whois.tpl

81 lines
1.6 KiB
Smarty
Raw Normal View History

2017-12-17 14:28:30 +00:00
<p>{{> ../user_name nick=whois.nick}}</p>
<dl class="whois">
{{#if whois.account}}
<dt>Logged in as:</dt>
<dd>{{whois.account}}</dd>
{{/if}}
<dt>Host mask:</dt>
<dd class="hostmask">{{whois.user}}@{{whois.host}}</dd>
{{#if whois.actualhost}}
2017-12-17 14:28:30 +00:00
<dt>Actual host:</dt>
<dd class="hostmask"><a href="https://ipinfo.io/{{whois.actualip}}" target="_blank" rel="noopener">{{whois.actualip}}</a>{{#notEqual whois.actualhost whois.actualip}} ({{whois.actualhost}}){{/notEqual}}</dd>
2017-11-02 11:01:45 +00:00
{{/if}}
2017-12-17 14:28:30 +00:00
2017-11-02 11:01:45 +00:00
{{#if whois.real_name}}
2017-12-17 14:28:30 +00:00
<dt>Real name:</dt>
<dd>{{{parse whois.real_name}}}</dd>
2016-03-09 08:27:01 +00:00
{{/if}}
2017-12-17 14:28:30 +00:00
2017-11-02 11:01:45 +00:00
{{#if whois.registered_nick}}
2017-12-17 14:28:30 +00:00
<dt>Registered nick:</dt>
<dd>{{whois.registered_nick}}</dd>
{{/if}}
{{#if whois.channels}}
<dt>Channels:</dt>
<dd>{{{parse whois.channels}}}</dd>
2017-11-02 11:01:45 +00:00
{{/if}}
2017-12-17 14:28:30 +00:00
2017-11-02 11:01:45 +00:00
{{#if whois.modes}}
2017-12-17 14:28:30 +00:00
<dt>Modes:</dt>
<dd>{{whois.modes}}</dd>
2017-11-02 11:01:45 +00:00
{{/if}}
2017-12-17 14:28:30 +00:00
2017-11-02 11:01:45 +00:00
{{#if whois.special}}
2017-12-17 14:28:30 +00:00
<dt>Special:</dt>
<dd>{{whois.special}}</dd>
2017-11-02 11:01:45 +00:00
{{/if}}
2017-12-17 14:28:30 +00:00
2017-11-02 11:01:45 +00:00
{{#if whois.operator}}
2017-12-17 14:28:30 +00:00
<dt>Operator:</dt>
<dd>{{whois.operator}}</dd>
2017-11-02 11:01:45 +00:00
{{/if}}
2017-12-17 14:28:30 +00:00
2017-11-02 11:01:45 +00:00
{{#if whois.helpop}}
2017-12-17 14:28:30 +00:00
<dt>Available for help:</dt>
<dd>Yes</dd>
2017-11-02 11:01:45 +00:00
{{/if}}
2017-12-17 14:28:30 +00:00
2017-11-02 11:01:45 +00:00
{{#if whois.bot}}
2017-12-17 14:28:30 +00:00
<dt>Is a bot:</dt>
<dd>Yes</dd>
2017-11-02 11:01:45 +00:00
{{/if}}
2017-12-17 14:28:30 +00:00
{{#if whois.away}}
<dt>Away:</dt>
<dd>{{{parse whois.away}}}</dd>
2016-03-09 08:27:01 +00:00
{{/if}}
2017-12-17 14:28:30 +00:00
2016-03-09 08:27:01 +00:00
{{#if whois.secure}}
2017-12-17 14:28:30 +00:00
<dt>Secure connection:</dt>
<dd>Yes</dd>
2016-03-07 15:10:46 +00:00
{{/if}}
2017-12-17 14:28:30 +00:00
{{#if whois.server}}
<dt>Connected to:</dt>
<dd>{{whois.server}} <i>({{whois.server_info}})</i></dd>
2016-03-07 15:10:46 +00:00
{{/if}}
2017-12-17 14:28:30 +00:00
2017-11-02 11:01:45 +00:00
{{#if whois.logonTime}}
2017-12-17 14:28:30 +00:00
<dt>Connected at:</dt>
<dd>{{localetime whois.logonTime}}</dd>
2017-11-02 11:01:45 +00:00
{{/if}}
2017-12-17 14:28:30 +00:00
{{#if whois.idle}}
2017-12-17 14:28:30 +00:00
<dt>Idle since:</dt>
<dd>{{localetime whois.idleTime}}</dd>
{{/if}}
2017-12-17 14:28:30 +00:00
</dl>