%include file="/support/header.mako" args="environ=environ, cookies=cookies, title='Settings - Earwig's Copyvio Detector'"/>\ <%namespace module="copyvios.settings" import="main"/>\ <%! from json import dumps, loads %>\ <% bot, status, langs, projects = main(environ, headers, cookies) %>\ % if status:
${status}
This page contains some configurable options for the copyvio detector. Settings are saved as cookies. You can view and delete all cookies generated by this site at the bottom of this page.
${key | h} | % try: <% lines = dumps(loads(cookie.value), indent=4).splitlines() %>\
% for line in lines:
${line | h}
% endfor
|
% except ValueError:
${cookie.value | h} | % endtry|
No cookies!
% endif <%include file="/support/footer.mako" args="environ=environ, cookies=cookies"/>