<%namespace module="copyvios.settings" import="main"/>\ <% bot, status, langs, projects = main(environ, headers, cookies) %>\ <%include file="/support/header.mako" args="environ=environ, cookies=cookies, title='Settings - Earwig\'s Copyvio Detector'"/>\ <%! from json import dumps, loads %>\ % if status:

${status}

% endif

Settings

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.

<% background_options = [ ("list", 'Randomly select from a subset of previous Wikimedia CommonsPictures of the Day that work well as widescreen backgrounds, refreshed daily (default).'), ("potd", 'Use the current Commons Picture of the Day, unfiltered. Certain POTDs may be unsuitable as backgrounds due to their aspect ratio or subject matter.'), ("plain", "Use a plain background."), ] selected = cookies["CopyviosBackground"].value if "CopyviosBackground" in cookies else "list" %>\ % for i, (value, desc) in enumerate(background_options): % if i == 0: % else: % endif % endfor
Default site: http:// . .org
Background:  ${desc}

Cookies

% if cookies: <% cookie_order = ["CopyviosDefaultProject", "CopyviosDefaultLang", "CopyviosBackground", "CopyviosShowDetails", "CopyviosScreenCache"] %>\ % for key in [key for key in cookie_order if key in cookies]: <% cookie = cookies[key] %>\ % try: <% lines = dumps(loads(cookie.value), indent=4).splitlines() %>\ % except ValueError: % endtry % endfor
${key | h} % for line in lines:
${line | h}
% endfor
${cookie.value | h}
% else:

No cookies!

% endif <%include file="/support/footer.mako" args="environ=environ, cookies=cookies"/>