<% # 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! # tor = get('tor') # import socket # host_name = socket.gethostname() sc = get('section_config') header = sc['header'] if 'header' in sc else {} %>
% if 'logout' in header: % if header['logout'] == True:
% end % end % if 'achtung' in header: % achtung_title = header['achtung']['title'] % achtung_content = header['achtung']['content'] !! % end
% title = 'The Onion Box' % if 'title' in header: % ttl = header['title'] % title = ttl if len(ttl)> 0 else title % end
{{!title}}
% subtitle = '' % if 'subtitle' in header: % subtitle = header['subtitle'] % end
{{!subtitle}}
% powered = '' % if 'powered' in header: % powered = header['powered'] % end
{{!powered}}