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>
2018-06-20 15:30:32 +00:00
<dd class="hostmask">{{whois.ident}}@{{whois.hostname}}</dd>
2017-12-17 14:28:30 +00:00
2018-06-20 15:30:32 +00:00
{{#if whois.actual_hostname}}
2017-12-17 14:28:30 +00:00
<dt>Actual host:</dt>
2018-06-20 15:30:32 +00:00
<dd class="hostmask"><a href="https://ipinfo.io/{{whois.actual_ip}}" target="_blank" rel="noopener">{{whois.actual_ip}}</a>{{#notEqual whois.actual_hostname whois.actual_ip}} ({{whois.actual_hostname}}){{/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>