Ben Kurtovic
cea99098ce
Fix some URL stuff.
pirms 10 gadiem
Ben Kurtovic
e682dbbdda
Move application logic around; improve exceptions.
pirms 10 gadiem
Ben Kurtovic
56a79cc8d1
More cleanup; cookie fixes, Flask integration.
pirms 10 gadiem
Ben Kurtovic
1344594c33
Internal cleanup for Flask.
pirms 10 gadiem
Ben Kurtovic
f48a566841
Begin conversion to Flask; updates.
pirms 10 gadiem
Ben Kurtovic
6045ea4e44
Updates.
pirms 10 gadiem
Ben Kurtovic
ad9a71a8ef
Refactor more.
pirms 11 gadiem
Ben Kurtovic
41c0df6cb9
Set the POTD as the default background.
pirms 11 gadiem
Ben Kurtovic
c1810ee269
Input field for specifying a revision ID.
pirms 11 gadiem
Ben Kurtovic
9f54517033
Syntax; add a couple missing table cells.
pirms 11 gadiem
Ben Kurtovic
e204194875
Use the right environment variables.
pirms 11 gadiem
Ben Kurtovic
de87631cf5
HTML5
pirms 11 gadiem
Ben Kurtovic
12e8611c4b
Try again.
pirms 11 gadiem
Ben Kurtovic
b0d51b3b0d
HTML standards compliance fixes.
pirms 11 gadiem
Ben Kurtovic
3ebe5c92d4
Write cookies before page generation, so changes take effect immediately.
pirms 11 gadiem
Ben Kurtovic
909f224e4d
Typo fix.
pirms 11 gadiem
Ben Kurtovic
80b7013964
Rename some cookies, streamline HTML, etc.
pirms 11 gadiem
Ben Kurtovic
ed22b1d344
Fix; darken background color.
pirms 12 gadiem
Ben Kurtovic
4ce5cf7a22
Improve image stuff.
pirms 12 gadiem
Ben Kurtovic
3de23628b7
Switching a bit of code from client-side to server-side.
- All POTD logic is now in Python instead of JS.
- Removed EarwigBackgroundCache cookie (now stored in a new `background` table in the database).
- Added EarwigScreenCache cookie
- Increase cookie life from a year to three.
pirms 12 gadiem
Ben Kurtovic
f3ddd8f700
Some adjustments to reduce HTML output size.
pirms 12 gadiem
Ben Kurtovic
0217eaad8d
Some escapes to close potential security, plus a couple bugfixes.
pirms 12 gadiem
Ben Kurtovic
b5908160bf
Move copyvio error message to top. Order cookies in an interesting way.
pirms 12 gadiem
Ben Kurtovic
68c3bd9d65
Do cookie updates before we generate the header.
pirms 12 gadiem
Ben Kurtovic
10364d1914
Don't stick quotes around 'checked'
pirms 12 gadiem
Ben Kurtovic
ae2713e040
Apparently I can't make a single commit without at least five typos.
pirms 12 gadiem
Ben Kurtovic
37cb1f568c
Fix default behavior.
pirms 12 gadiem
Ben Kurtovic
1523c2401f
Implement 'background' option plus background images.
pirms 12 gadiem
Ben Kurtovic
833bdc6415
Support other backgrounds.
pirms 12 gadiem
Ben Kurtovic
3cf62618b2
More adjustments.
pirms 12 gadiem
Ben Kurtovic
a68e63af4b
Move status box.
pirms 12 gadiem
Ben Kurtovic
94d266e740
Get around Mako bug that doesn't support try/else
pirms 12 gadiem
Ben Kurtovic
13d140d899
Format cookies encoding JSON nicely.
pirms 12 gadiem
Ben Kurtovic
eceead74bb
Updates, mostly in cookies and settings.
pirms 12 gadiem
Ben Kurtovic
bc4c2de763
Fixing cookie bug.
pirms 12 gadiem
Ben Kurtovic
cb323f8ae8
Some cleanup
pirms 12 gadiem
Ben Kurtovic
e223412e79
Ignore cookies set by other TS services.
pirms 12 gadiem
Ben Kurtovic
7ec50e1668
Fix.
pirms 12 gadiem
Ben Kurtovic
3e934fbaef
Massively update cookie handling.
pirms 12 gadiem
Ben Kurtovic
066dc9504f
Use cookies to store default site.
pirms 12 gadiem
Ben Kurtovic
5f8c8307fc
Well, this seems a bit silly.
pirms 12 gadiem
Ben Kurtovic
5789316300
cookie.key, not cookie.name; whoops
pirms 12 gadiem
Ben Kurtovic
9677390ea3
More work on the settings page.
pirms 12 gadiem
Ben Kurtovic
309cb30358
Beginning work on a settings page.
pirms 12 gadiem