[%# Welcome text %]

[% i18n("Your Network Access Status") %]

[% IF txt_auth_error.defined %]
[% flashIcon(level='error') %]

[% i18n(txt_auth_error) %]

[% END %]
[% flashIcon(level='notice') %]

[%- IF node.status == 'reg' %] [% i18n_format("Your device is registered to %s", node.pid) | none %] [%- ELSE %] [% i18n("Your current device is not registered on our network.") %] [%- END %]

[%- IF node.expiration %]
[% flashIcon(level='notice') %]

[% i18n('Your network access ends in ') %]

[%- ELSIF node.time_balance %]
[% flashIcon(level='notice') %]

[% i18n_format("You're not connected to the network, but have a timebank of %s", node.time_balance ) %]

[%- ELSIF node.time_balance == 0 %]
[% flashIcon(level='error') %]

[% i18n("Your network access has expired.") %]

[%- END %] [% IF showLogin %]
[% i18n("Login to manage registered devices") %]
[%# AUP %]
[% INCLUDE aup_text.html %]
[%# User / Pass %]
[%# submit %] [%- IF billing %]
[% svgIcon(id='ic_credit_card_black_24px',size='small') %]

[% i18n("Extend your access") %]

[%- END %]
[% ELSIF nodes.size > 0 %] [%- FOREACH n IN nodes %] [% NEXT IF n.status != 'reg' %] [%- END %]
[% i18n("Your registered devices") %]
[% i18n("MAC Address") %] [% i18n("OS Type") %] [% i18n("Registration Date") %]
[% n.mac %] [% n.device_class %] [% n.regdate IF n.regdate != '0000-00-00 00:00:00' %] [% i18n("Unregister") %]
[%- ELSE %]
[% flashIcon(level='notice') %]

[% i18n("You have no registered devices.") %]

[% END %] [% UNLESS showLogin %]
[% svgIcon(id='ic_add_circle_black_24px',size='small') %]

[% i18n("Register a device") %]

[% svgIcon(id='ic_close_black_24px',size='small') %]

[% i18n("Logout") %]

[% END %]