%! from json import dumps, loads from flask import g, request %>\ <%include file="/support/header.mako" args="title='Settings - Earwig\'s Copyvio Detector'"/> % 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"/>