<%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 = [ ("plain", "Use a plain tiled background (default)."), ("potd", 'Use the current Wikimedia CommonsPicture of the Day, unfiltered. Certain POTDs may be unsuitable as backgrounds due to their aspect ratio or subject matter (generally portraits do not work well).'), ("list", 'Randomly select from a subset of previous Commons Pictures of the Day that work well as widescreen backgrounds, refreshed daily.'), ] selected = cookies["CopyviosBackground"].value if "CopyviosBackground" in cookies else "plain" %>\ % 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"/>