%# Note that this file is not a valid *.html file! %# It is intended to be a bottlepy - style template %# used for the scripting part of TheOnionBox! {{!header_row('Tor', 'System Settings', 'tor')}}
Nickname
( {{nn}} )
% else:{{nn}}
% endFingerprint
Version
{{tor_info['tor/version']}}
% tvc = tor_info['tor/version/current']
% if tvc in VERSION_STATUS_COLORS:
{{tvc}}
% end
Control Port
<%
_cat_color = {"open": "black", "Password": "green", "Cookie": "blue"}
_cat = "open"
if tor_info['tor/isAuthPassword']:
_cat = "Password"
elif tor_info['tor/isAuthCookie']:
_cat = "Cookie"
end
%>
{{tor_info['tor/controlPort']}}
{{_cat}}
Flags
<% fs = ''
for flag in tor_info['tor/flags']:
if fs is not '':
fs += ' '
end
fs += '' + flag + '
'
end
if (len(tor_info['tor/flags']) == 1) and (tor_info['tor/flags'][0] == 'none'):
a_o = get('accounting_on')
if a_o == True:
a_s = get('accounting_stats')
if a_s.status != 'awake':
fs += ' | could be due to '
fs += 'Hibernation Status'
fs += ' ' + a_s.status + '
'
end
end
end
%>
{{!fs}}
Exit Policy
<%
_ep = ""
for ep in tor_info['tor/exitPolicies']:
if _ep is not '':
_ep += ' | '
end
_ep += ep
end
%>
{{_ep}}