<%! from json import dumps, loads from flask import g, request from copyvios.misc import cache %>\ <%include file="/includes/header.mako" args="title='Settings - Earwig\'s Copyvio Detector', splash=True"/> <%namespace name="ooui" file="/includes/ooui.mako"/> % if status:

${status}

% endif

Settings

This page contains some configurable options for the copyvio detector. Settings are saved as cookies.

Default site

<%ooui:field_layout> <%ooui:widget> <%ooui:horizontal_layout> <%include file="/includes/site.mako"/>

Background

<% background_options = [ ("list", 'Randomly select from a subset of previous Wikimedia Commons Pictures 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 = g.cookies["CopyviosBackground"].value if "CopyviosBackground" in g.cookies else "list" %> <%ooui:field_layout> <%ooui:radio_select> % for value, desc in background_options: <%ooui:field_layout align="inline"> <%ooui:radio> <%ooui:field_layout_header> % endfor

Highlight colors

This is not currently configurable, but it will be soon.

Default: % for i in range(1, 9): ${i} % endfor 9+
<%ooui:field_layout align="left"> ${ooui.submit_button(label="Save")}
<%include file="/includes/footer.mako"/>