[% title = i18n("State - Network Access") %] [% INCLUDE header.html %] [%# Welcome text %]
User

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


[%- IF node.status == 'reg' %]
[% i18n_format("You device is registered to %s", node.pid) %]
[%- ELSE %]
[% i18n("Your current device is not registered on our network.") %]
[%- END %] [%- IF node.expiration %]
[% i18n('Your network access ends in ') %]
[%- ELSIF node.time_balance %]
[% i18n_format("You're not connected to the network, but have a timebank of %s", node.time_balance ) %]
[%- ELSIF node.time_balance == 0 %]
[% i18n("Your network access has expired.") %]
[%- END %] [%- IF node.last_start_time AND billing %]
[% i18n("Extend Access") %]
[%- END %] [% IF showLogin %]
[% i18n("Login to manage registered devices") %]
[%# AUP %]
[% i18n("Acceptable Use Policy") %]
[% INCLUDE aup_text.html %]
[%# The space below is intententionnal %]
[% i18n("I have read and accept the terms") %]
[%# User / Pass %]
[% i18n("Username") %]
[% i18n("Password") %]
[%# submit %]
[% IF oauth2_google || oauth2_facebook || oauth2_github %]
[% IF oauth2_google -%]
[% i18n("or") %]
[% i18n('Login with Google account') %] [% END -%] [% IF oauth2_facebook -%]
[% i18n("or") %]
[% i18n('Login with Facebook account') %] [% END %] [% IF oauth2_github -%]
[% i18n("or") %]
[% i18n('Login with GitHub account') %] [% END %]
[% 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.dhcp_fingerprint %] [% n.regdate IF n.regdate != '0000-00-00 00:00:00' %] [% i18n("Unregister") %]
[%- ELSE %]
[% i18n("You have no registered devices.") %]
[% END %] [% UNLESS showLogin %] Logout [% END %]
[% INCLUDE footer.html %]