Max Goodman
299bb05672
Replace reddit_first cookie with client side logic.
2013-02-27 14:26:27 -08:00
Max Goodman
95a8bf2c92
Darken "mellow" infobar border.
2013-02-27 14:26:00 -08:00
Max Goodman
37b9073e38
Prevent framing on prefs pages.
...
Thanks, /u/olemoudi.
2013-02-27 14:25:31 -08:00
Max Goodman
8ddd5c51bf
Load admin bar backbone with noConflict.
...
This is to avoid conflicts with Backbone on the about pages until
Backbone is in the main JS lib.
2013-02-27 14:25:31 -08:00
Max Goodman
b793f20a3a
Add admin bar: top bar UI for status info/stats/tools.
2013-02-27 14:25:31 -08:00
Max Goodman
bda7c460ae
Fix typo in admin page menu.
2013-02-27 14:25:30 -08:00
Max Goodman
2776fc7cd1
stats: Add timing logging capability.
...
This also rejiggers stats timing code to record a start and end time
instead of a duration, so timings can be plotted on a timeline
visualization.
2013-02-27 14:25:30 -08:00
Max Goodman
67af84488d
Add request timer intermediate for "post".
2013-02-27 14:25:30 -08:00
Max Goodman
e65b79029e
Add Backbone JS lib.
2013-02-27 14:25:30 -08:00
Max Goodman
a82c278023
Fix LESS syntax error and color issues.
2013-02-27 14:25:30 -08:00
Max Goodman
b770a4b1e2
reddit.css -> reddit.less
...
Note: you'll need to update your .ini stylesheet name to have a .less
extension.
2013-02-27 14:25:30 -08:00
Max Goodman
244b314cf4
Move nonessential JS to the bottom of the page.
2013-02-27 14:25:29 -08:00
Max Goodman
4e24bff045
Add js.py/strings.py as deps to JS modules.
...
If either python file changes, we may need to change the compiled JS
files. We'll take the conservative approach and always rebuild.
2013-02-27 14:25:29 -08:00
Max Goodman
261583095f
JS string formatting parameter substitution.
...
This changes the string usage pattern from:
r.strings.stringname to r.strings('stringname', parameters).
2013-02-27 14:25:29 -08:00
Max Goodman
3788b971ad
Add JS DataSource abstraction for wrapping JSON blobs.
2013-02-27 14:25:29 -08:00
Max Goodman
0ed5decc1f
Clean up unnecessary variable.
2013-02-27 14:25:29 -08:00
Max Goodman
89faae2290
Whitespace.
...
PEP-8 and whitespace removal.
2013-02-27 14:25:29 -08:00
Max Goodman
63d7b39434
Client side spotlight stubs + back/prev buffer.
2013-02-27 17:16:11 -05:00
Max Goodman
abfa8d5d72
Use overflow trick to properly size border up to sidebar.
2013-02-27 17:16:11 -05:00
Max Goodman
3732980c02
Fix last_click highlighting in browsers with a bfcache.
...
Browsers with a back forward cache will restore the page rather than
reloading it, so we need to run the highlighting function on the
"pageshow" event as well.
2013-02-27 17:16:11 -05:00
Max Goodman
a20bd596fa
Use breadcrumbs to determine last click highlighting.
...
Increase breadcrumb collection length to accomodate a single back/forward
button usage after a click.
2013-02-27 17:16:11 -05:00
Max Goodman
e1dfc7709c
Remove unused function argument.
2013-02-27 17:16:11 -05:00
Max Goodman
dbad14d816
More granular breadcrumb storage length.
2013-02-27 17:16:11 -05:00
Max Goodman
28d3388642
Add debug util functions to base.js.
2013-02-27 17:16:11 -05:00
bsimpson63
09a0f91ae9
Loggedout users always get a promoted link in the spotlight.
2013-02-27 17:16:11 -05:00
bsimpson63
c886c59cc8
Add promoted_link tools.
2013-02-27 17:16:11 -05:00
bsimpson63
fc784dd5e1
Delete insert_promoted.
2013-02-27 17:16:11 -05:00
bsimpson63
3e4fcb3d19
Delete benchmark_promoted.
2013-02-27 17:16:11 -05:00
bsimpson63
f7f346afa7
Client side shuffling spotlight content.
2013-02-27 17:16:11 -05:00
bsimpson63
beffa52966
Insert promoted links according to promoted_every_n.
2013-02-27 17:16:10 -05:00
bsimpson63
f1caa0542a
organic: Delete unused organic_length.
2013-02-27 17:16:10 -05:00
bsimpson63
eb985d12a7
Delete organic_pos.
2013-02-27 17:15:55 -05:00
bsimpson63
a4e0aa022f
RedditGifts gold controller.
2013-02-27 17:15:27 -05:00
bsimpson63
6ce383ea0e
reverse_gold_purchase only needs transaction_id.
2013-02-27 17:15:26 -05:00
bsimpson63
9bdea7995a
Don't assume months from pennies.
2013-02-27 17:15:26 -05:00
bsimpson63
94ac1596f9
Typo in complete_gold_purchase.
2013-02-27 17:15:10 -05:00
Neil Williams
ac4e5e5382
fetch_things2: Assert that a sort order is provided.
...
Otherwise you end up in a bizarro infinite loop.
2013-02-27 14:03:48 -08:00
Logan Hanks
89cea3e439
Disable changing one's own permissions.
2013-02-27 14:02:05 -08:00
Logan Hanks
c751ff0132
Allow limited mods to demod themselves.
2013-02-27 14:01:57 -08:00
Logan Hanks
6a59536f4d
Make ModList narrower and remove sendmessage col.
2013-02-27 14:01:36 -08:00
Logan Hanks
1e4e678462
Fix permission control in the moderator invitation form.
2013-02-27 14:01:28 -08:00
Neil Williams
ce57835394
Avoid loading pycountry in the app.
...
It takes a tonne of memory. If the countries.json file is present
(generated by "make countries") then the app will prefer to use it
saving itself megabytes of space.
2013-02-27 13:37:55 -08:00
Chad Birch
c870dde276
Add distinguished status to JSON templates
2013-02-26 16:47:01 -07:00
Chad Birch
191c249934
Exclude items hidden to the user from 'other discussions'
...
Exclude from both the listing as well as the count in the tab
2013-02-26 16:46:55 -07:00
Chad Birch
4907bc4bb1
front.py PEP8 whitespace cleanup
2013-02-26 16:46:49 -07:00
Chad Birch
676eb6fef6
Have save/unsave button toggle back and forth
...
This also removes the confirmation added in 3e74406
2013-02-26 16:46:41 -07:00
Chad Birch
bc4a9e7c96
Don't trim off over half of a suggested title
2013-02-26 16:46:28 -07:00
Chad Birch
cb0949ac45
Confirm suggest title if they already entered a title
2013-02-26 16:46:20 -07:00
Chad Birch
0eee54b008
Re-add listing-page class to body classes
2013-02-25 14:58:26 -07:00
Joe Alcorn
57e324cff2
Prevent incorrect redirection when visiting /r/subreddit/new?sort=rising
2013-02-25 13:27:18 -07:00