[% site_config.title = c.loc('NGCP Support Status') -%]

<div class="row">
    <span>
        <a class="btn btn-primary btn-large" href="[% c.uri_for('/back') %]"><i class="icon-arrow-left"></i> [% c.loc('Back') %]</a>
    </span>
</div>
[% back_created = 1 -%]
<div class="ngcp-separator"></div>

[% IF support_status_code == 1 -%]

<p>[% c.loc('Sipwise support access is') %] <b>[% c.loc('enabled') %]</b>.</p>

[% c.loc('To disable Sipwise support access run:') %]
<br/>
<code>apt install ngcp-support-noaccess</code>

[% ELSIF support_status_code == 2 -%]

<p>[% c.loc('Sipwise support access is') %] <b>[% c.loc('disabled') %]</b>.</p>

[% c.loc('To enable Sipwise support access run:') %]
<br/>
<code>apt install ngcp-support-access</code>

[% ELSE -%]

[% c.loc('Could not determine status of Sipwise support access.') %]

[% END -%]

<br/>

[% IF openvpn_info.allowed -%]
[%   IF openvpn_info.active -%]
<p>[% c.loc('Sipwise VPN service is') %] <a class="btn btn-small btn-success" href="javascript:toggleOpenvpn('confirm');void(0);"><i class="icon-ok"></i>Running</a></p>
[%   ELSE -%]
<p>[% c.loc('Sipwise VPN service is') %] <a class="btn btn-small btn-secondary" href="javascript:toggleOpenvpn('confirm');void(0);"><i class="icon-off"></i>Stopped</a></p>
[%   END -%]
[% END -%]

[% # vim: set tabstop=4 syntax=html expandtab: -%]
