Commit Graph

771 Commits

Author SHA1 Message Date
Logan Hanks
87c52ce751 Implement a flair template management interface. 2011-10-19 13:59:09 -07:00
Logan Hanks
2750d7b1f7 Add FlairTemplate thing and relation.
Also move flair model to its own module.
2011-10-19 13:59:09 -07:00
Max Goodman
4cda2d0177 Relax CORS origin restriction to all subdomains of trusted domains. 2011-10-18 16:53:04 -07:00
Max Goodman
60ac992522 Add is_subdomain helper for proper subdomain checking. 2011-10-18 16:53:04 -07:00
Max Goodman
23b268b849 Change caption on +/- frontpage back to sub/unsubscribe. 2011-10-18 16:53:04 -07:00
Max Goodman
5e8a343932 Clarify subreddit language on the submit form. 2011-10-18 16:53:04 -07:00
Max Goodman
ff42b190b5 Remove default subreddit from submit form for special reddits. 2011-10-18 16:53:04 -07:00
Max Goodman
bafd47e552 Add support for a custom subreddit banning message. 2011-10-18 16:52:26 -07:00
Max Goodman
fe12c1ff30 Add back load coloring styles. 2011-10-18 16:52:26 -07:00
Max Goodman
3003e32bc8 Add missing responder argument to search_reddit_names. 2011-10-18 16:52:26 -07:00
Max Goodman
9300c4901a Properly check permissions upon mod/unmod. 2011-10-18 16:52:26 -07:00
bl0ckeduser
770bad372d Internationalize "full comments" button 2011-10-13 16:16:10 -07:00
Max Goodman
b6493a13c7 Add "remember me" back to the login tab order. 2011-10-13 13:14:50 -07:00
Neil Williams
e76d96d5b4 Add page for users to see their account's IP history. 2011-10-13 13:14:39 -07:00
Neil Williams
6650b02e00 Sexify remaining old-style code in analytics. 2011-10-13 13:14:33 -07:00
Max Goodman
0cf053f477 Add blank announcement_message to example.ini. 2011-10-08 12:01:00 -07:00
Max Goodman
0f4e3adb8b Fix _login invocation for resetpassword. 2011-10-07 22:06:07 -07:00
Max Goodman
9954c55906 Specify tabindex on login inputs for mouse-free usage. 2011-10-07 15:11:37 -07:00
Max Goodman
b128a46f62 Focus the username box when a login/register popup is shown. 2011-10-07 15:11:37 -07:00
Max Goodman
575b3bd8df Do not 403 CORS requests with non-allowed origin. 2011-10-07 15:11:37 -07:00
Max Goodman
3752c677ca Omit tracking pixel on secure .compact pages. 2011-10-07 15:11:37 -07:00
Max Goodman
d6d1887ac4 Expect the domain prefix for authorized cname origins. 2011-10-07 15:11:36 -07:00
Max Goodman
d3fb892a11 Take the domain prefix into account for g.origin. 2011-10-07 15:11:36 -07:00
Max Goodman
be975f395d Fix validation of dest redirects to cnames. 2011-10-07 15:11:36 -07:00
Max Goodman
9ef872e7b3 Implement http login on subreddit cnames. 2011-10-07 15:11:32 -07:00
Max Goodman
c2cf57007d Add missing preamble to framebuster. 2011-10-07 14:51:25 -07:00
Max Goodman
5ec91a62f8 Specify the cookie path when deleting for Konqueror. 2011-10-07 14:51:25 -07:00
Max Goodman
bb6beb7445 Set the frame name as an iframe attribute for Konqueror. 2011-10-07 14:51:25 -07:00
Max Goodman
17dafa6a14 Handle JS-free POSTs in the login form. 2011-10-07 14:51:25 -07:00
Max Goodman
607cb4fa5a Update error_field to check c.errors properly. 2011-10-07 14:51:25 -07:00
Max Goodman
6cba543441 Omit the powered_by logo on reddit subdomains. 2011-10-07 14:51:25 -07:00
Max Goodman
b847757069 Use cross domain https for slightly safer login.
Login UI code has been simplified and moved into the client side. CORS
is used for the cross-domain POST if available, otherwise an iframe and
cookie polling technique is used. Start fleshing out the new JS tree. :)
2011-10-07 14:51:25 -07:00
Max Goodman
edbefbcf4f Add CORS support and cross-domain response helpers. 2011-10-07 14:51:25 -07:00
Max Goodman
bad98ec030 Move the preamble above library JS in mobile. 2011-10-07 14:51:25 -07:00
Max Goodman
70ff6b6178 Remove and simplify sendstring function. 2011-10-07 14:51:25 -07:00
Max Goodman
a6ec4dbd6b Remove old Firefox 3 access control implementation. 2011-10-07 14:51:25 -07:00
Max Goodman
3144033318 Prettify the login popup. 2011-10-07 14:51:25 -07:00
Max Goodman
4b1d3de26d Allow multple different cookies to pass through the cleanup middleware. 2011-10-07 14:51:25 -07:00
Max Goodman
71d7ecfb8c Remove non-functioning subreddit counting for now. 2011-10-07 14:51:25 -07:00
Max Goodman
205cfb5967 Add general jQuery cookie library and replace jquery.json. 2011-10-07 14:51:25 -07:00
Max Goodman
bf1ff113a7 Move external JS libs to their own directory. 2011-10-07 14:51:25 -07:00
Andre D
1ecb427fdd Add an option to disable rate limiting. For testing. 2011-10-07 14:51:24 -07:00
Max Goodman
e853b9285f Add quick support for an announcement message in the .ini. 2011-10-07 14:51:24 -07:00
Max Goodman
5a7d823e1a Add lab.reddit.com to the middleware exception. 2011-10-07 14:51:24 -07:00
Max Goodman
16d74d3684 Require JSON APIs are requested with a .json extension. 2011-10-07 14:51:24 -07:00
Max Goodman
c280c6aca1 Fix handling of an unset language override.
Add setting to example.ini.
2011-10-07 14:51:24 -07:00
Neil Williams
93a65a6a3a Move onload out of the app.
We need onload to be able to get a client-IP based
tracking validation hash, but it doesn't actually need
to do any database work to make those hashes. It also
fails a huge number of times per day. This moves the hash
calculation out to an external app with no db dependencies.
2011-10-06 08:22:16 -07:00
Neil Williams
581cb4eac5 Make clean_static remove reddit.js and mobile.js. 2011-10-06 08:12:34 -07:00
Neil Williams
5d8179265a Remove temporarily disabled click-tracking JS.
Until it's back in action, this is just wasting bytes on the wire.
2011-10-06 08:12:19 -07:00
Neil Williams
ea07f046d0 Remove "defunct" JS. 2011-10-06 08:11:57 -07:00