Commit Graph

2458 Commits

Author SHA1 Message Date
Bryce Boe
32359ee6b7 Indicate failure when no moderator invite is found. 2013-01-15 14:30:16 -08:00
Neil Williams
ad06201f57 traffic: Separate apart weeks in day-interval tables.
This should help to make week-by-week trends a little clearer and also
make it easier to see what day of the week a day was.
2013-01-15 14:30:16 -08:00
Neil Williams
7564f3a475 traffic: Add explanation of which timezone the data is in. 2013-01-15 14:30:16 -08:00
Neil Williams
a5c6333046 traffic: Generalize max-row highlighter and use on all columns. 2013-01-15 14:30:16 -08:00
Neil Williams
74e7d5d725 Move render info blurb out of redditfooter to avoid caches.
RedditFooter is a CachedTemplate and so the blurb which is supposed to
be unique to each request is being rendercached.
2013-01-15 14:30:16 -08:00
Neil Williams
2c09a35627 Don't write the pagecached content twice. 2013-01-14 16:23:41 -08:00
Neil Williams
f9ee3c6a22 Fix use of StackedObjectProxy pylons.response in debug error pages.
This caused some debug page static files to generate an error.
2013-01-14 15:32:38 -08:00
Neil Williams
4a04c18842 ErrorController: Fix bad failien URL on handle_awful_failure case. 2013-01-14 15:32:38 -08:00
Neil Williams
a2e2e46312 ErrorController: Don't ever return a body in 204/304 responses.
This should fix an issue where we return a JSON body for 304 responses
to API requests which is invalid according to the HTTP spec and appears
to be causing bad data to get cached in the CDN.
2013-01-14 15:32:38 -08:00
Neil Williams
e1482553ca embed/wired/widget: Add callback validation à la JSONP. 2013-01-14 15:32:38 -08:00
Neil Williams
116e9939aa Get rid of awkward and underused utils.to_js.
Buttonlite didn't really do anything with this function since it
disabled callback *and* escape.

The response wrapper fixes a bug where the callback is a unicode object
and since the content object is UTF-8 encoded things go south ("'ascii'
codec can't decode byte ...").

This also removes a few scattered imports of the function that were
unused.
2013-01-14 15:32:38 -08:00
Jason Harvey
048b6700ba Add timestamp to debuginfo footer text. 2013-01-14 15:32:38 -08:00
Neil Williams
f5cc13db2a Use profile page mode for all /comments/gilded listings. 2013-01-14 11:33:56 -08:00
Neil Williams
453149b729 Add /comments/gilded link to /r/all sidebar. 2013-01-14 10:36:50 -08:00
Neil Williams
3c3b9e9594 Add per-subreddit gilding listings. 2013-01-14 10:36:50 -08:00
Neil Williams
50b3ed59eb validatedMultipartForm: Fix json library not imported. 2013-01-14 10:36:50 -08:00
Keith Mitchell
052b4b8a85 Use promote.cost_per_X functions in Promote_Graph 2013-01-11 13:43:22 -08:00
Keith Mitchell
a6c9364006 Move _cost_per_{mille,click} functions to promote.py 2013-01-11 13:43:16 -08:00
Keith Mitchell
ed390084ba promote_graph: Use CSS to capitalize headers 2013-01-11 13:43:11 -08:00
Keith Mitchell
8413fc3a44 promote_graph.html: Add 'scope="row"' 2013-01-11 13:43:06 -08:00
Keith Mitchell
8545a7bf26 Promote_Graph: Add predicted impressions
The admin view of Promote_Graph will now show the
predicted impressions. This also stubs out the
scheduled impressions.
2013-01-11 13:43:01 -08:00
Keith Mitchell
7c9d7930bb Promote_Graph: Move logic out of template 2013-01-11 13:42:56 -08:00
Keith Mitchell
a47cf093f9 promotecontroller: Fix long lines
Remove unused 'subk' variable
2013-01-11 13:42:51 -08:00
Max Goodman
65f0e79bc5 welcomebar: Work around Safari 5 sizing issue. 2013-01-10 14:07:20 -08:00
Neil Williams
14f31880f3 Replace c.response with pylons.response.
pylons.response is its own StackedObjectProxy and returning response
objects from controllers is deprecated so returning c.response is bad.

In many cases, this transition just involves returning content from the
controller directly rather than doing c.response.content = ___. This
will make the transition to Pylons 0.9.7 easier because WebOb's response
object doesn't have a content property and works differently.
2013-01-10 09:57:21 -08:00
Neil Williams
029f5c9392 Remove remaining (unused) imports of pylons.Response. 2013-01-10 09:57:21 -08:00
Neil Williams
651885209f Toolbar: replace pylons.Response usage with simple abort. 2013-01-10 09:57:21 -08:00
Neil Williams
44f42ef738 Middleware: Replace pylons.Response with raw WSGI.
pylons.Response is deprecated and we're not really using its
capabilities here anyway.
2013-01-10 09:57:21 -08:00
Keith Mitchell
83f424c8d9 promotecontroller: Automated whitespace cleanup 2013-01-10 09:57:21 -08:00
Keith Mitchell
3e95419468 promotecontroller: Clean up imports 2013-01-10 09:57:21 -08:00
Keith Mitchell
96c0aef441 promotions: Separate admin view of /promoted/graph
Make the admin view of /promoted/analytics distinct
from the non-admin view
2013-01-10 09:57:21 -08:00
Jason Harvey
36191d3ac9 Add CommentsByAccount and LinksByAccount. 2013-01-10 09:57:21 -08:00
Max Goodman
0770507a2c Avoid using an inner PaneStack for stacking infobars.
This was causing API issues because the PaneStack json template
outputs a "{}" by default.
2013-01-09 15:54:03 -08:00
Max Goodman
da22854cad Add snazzy first visit welcome bar. 2013-01-09 14:45:08 -08:00
bsimpson63
c42551d9e6 Remove gold/about entry for per subreddit karma statistics. 2013-01-09 10:06:50 -05:00
bsimpson63
5ce6f0e6ef Un-gold-gate per subreddit karma on user pages. 2013-01-09 10:06:50 -05:00
bsimpson63
afcc662e69 Entry in gold/about for AllMinus. 2013-01-09 10:06:50 -05:00
Max Goodman
6b4a2cb4ab Remove whitespace from css_class template helper. 2013-01-09 10:06:49 -05:00
Max Goodman
1bbee79522 Tweak display name for AllMinus. 2013-01-09 10:06:49 -05:00
Max Goodman
806bd42a1f Add sidebar description to /r/all and /r/all-. 2013-01-09 10:06:49 -05:00
Max Goodman
1697b3e47b Tweak and engolden allminus infobar appearance. 2013-01-09 10:06:49 -05:00
Max Goodman
1aab8d4b3d Tweak /r/all page titles to be more descriptive. 2013-01-09 10:06:49 -05:00
bsimpson63
3e7df834d7 use AllMinusBox for goldies, InfoBar warning for non-goldies 2013-01-09 10:06:49 -05:00
bsimpson63
c2726851b5 Use Subreddit.random_reddits to limit AllMinus. 2013-01-09 10:06:49 -05:00
bsimpson63
36415ad4f6 Rearrange random_reddits. 2013-01-09 10:06:49 -05:00
bsimpson63
6b3ee4bb70 Add AllMinusBox sidebox. 2013-01-09 10:06:49 -05:00
bsimpson63
9d2a1af184 AllMinus gold only. 2013-01-09 10:06:49 -05:00
bsimpson63
f29d0ec565 Clean up MultiReddit. 2013-01-09 10:06:49 -05:00
Brian Simpson
5ee83b1636 Subreddit AllMinus that subtracts from /r/all. 2013-01-09 10:06:49 -05:00
bsimpson63
9723a6fc9f Thing: Add in_ operator. 2013-01-09 10:06:49 -05:00