From 41c0df6cb9e4bac16214e820a68df4e64d9c5001 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 5 Sep 2013 20:21:20 -0400 Subject: [PATCH] Set the POTD as the default background. --- pages/settings.mako | 8 ++++---- pages/support/header.mako | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/pages/settings.mako b/pages/settings.mako index 663732c..5c3a81a 100644 --- a/pages/settings.mako +++ b/pages/settings.mako @@ -41,11 +41,11 @@ <% background_options = [ - ("plain", "Use a plain tiled background (default)."), - ("potd", 'Use the current Wikimedia Commons Picture 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.'), + ("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 = cookies["CopyviosBackground"].value if "CopyviosBackground" in cookies else "plain" + selected = cookies["CopyviosBackground"].value if "CopyviosBackground" in cookies else "list" %>\ % for i, (value, desc) in enumerate(background_options): diff --git a/pages/support/header.mako b/pages/support/header.mako index 10082c8..2ff8e96 100644 --- a/pages/support/header.mako +++ b/pages/support/header.mako @@ -14,12 +14,11 @@ - <% selected = cookies["CopyviosBackground"].value if "CopyviosBackground" in cookies else "plain" %>\ + <% selected = cookies["CopyviosBackground"].value if "CopyviosBackground" in cookies else "list" %>\ % if selected == "plain": % else: - <% bg_url = set_background(cookies, selected) %>\ - + % endif