Commit Graph

3674 Commits

Author SHA1 Message Date
Neil Williams
8fbf688701 gold progress bar: Add fallback color and gradient for Safari.
The progress bar was blank on older iOS and Safari 6. This should
provide a proper gradient for those browsers as well as a flat fallback
color for anything else.
2013-10-21 11:37:17 -07:00
Max Goodman
aaf1e51abb write-live-config: Update to reflect PluginLoader API change. 2013-10-21 11:37:17 -07:00
Neil Williams
75f548b941 Remove old goldvertisement config. 2013-10-19 15:56:47 -07:00
Neil Williams
134b09a79a Replace goldvertisement with daily progress bar.
Many thanks to @chromakode for design and copy.

The old goldvertisement live config is left in for now so that old code
continues to function during rollout.
2013-10-19 15:56:47 -07:00
Max Goodman
48aed9f88f Add images for goldvertisement progress bar. 2013-10-19 15:56:47 -07:00
Neil Williams
c814bb8e6b r.ui.Bubble: Add anchored-top-centered bubble mode. 2013-10-19 15:56:47 -07:00
Logan Hanks
10e2ab8b42 Use constant_time_compare to check oauth2 secrets. 2013-10-17 16:33:10 -07:00
Brian Simpson
5901ead106 Redirect users to their original destination after verifying email.
Particularly useful for redirecting back to /promoted for selfserve
advertisers.
2013-10-16 20:31:27 -04:00
Brian Simpson
50e5931cc3 Note about tricky redirects in PromoteController.GET_listing. 2013-10-16 20:31:27 -04:00
Brian Simpson
f5f3fa4043 Give the user a message when they verify their email. 2013-10-16 20:31:27 -04:00
Brian Simpson
799f3bf3f9 get_sold_pageviews: filter out campaigns with voided transactions. 2013-10-16 20:31:27 -04:00
Brian Simpson
96f35ab496 Only count booked inventory from paid campaigns. 2013-10-16 20:31:22 -04:00
Jason Harvey
5ce5d303e3 Fix: ensure input element exists even if it initially has no value.
reddit.js will insert a value in this element, so it must exist. Without
it, things like message replies break.
2013-10-16 17:26:52 -07:00
Jason Harvey
21d4f41476 Fix pre-existing info leak on deleted comments. 2013-10-16 16:09:21 -07:00
Jason Harvey
2f0fa46e89 Remove comment ID references for deleted comments. 2013-10-16 16:09:20 -07:00
Brian Simpson
53a24a9849 Update campaigns when a link that should be live is approved. 2013-10-16 03:56:38 -04:00
Brian Simpson
545d07ce31 Make widths consistent in the promo-form. 2013-10-16 03:55:04 -04:00
Brian Simpson
0d8c24b28e Textarea for promoted link selftext is rounded. 2013-10-16 03:55:04 -04:00
Brian Simpson
b5a94475d7 Class for UserText textarea. 2013-10-16 03:55:04 -04:00
Brian Simpson
e291d0a592 Allow sponsors to change nsfw status of promoted links. 2013-10-16 03:55:04 -04:00
Brian Simpson
22ec6dcfbc Timeout for r.spotlight.requestPromo. 2013-10-16 03:54:59 -04:00
Brian Simpson
dbadf7d9d0 Set the site when requesting a promoted link.
This lets us do over18 thumbnail hiding correctly.
2013-10-16 03:54:50 -04:00
Brian Simpson
cc3af6e8ff Use lang_override for all "en" variants. 2013-10-16 03:53:10 -04:00
Brian Simpson
2f46f90123 Separate language used for translation from page language. 2013-10-16 03:53:05 -04:00
Neil Williams
3e846946be Make ListingChooser full-height on short pages.
The JS check in ListingChooser.initialize only takes care of the case
where the list of multis is longer than the body. However, when there
are very few multis *and* the page content is short, you get a weird
truncated listing chooser. This fixes that by setting a min-height on
body which works because html is already height: 100%.
2013-10-15 15:31:12 -07:00
Jason Harvey
5cd9d0099e Add max_depth parameter to CommentPane cache key. 2013-10-14 15:00:52 -07:00
Neil Williams
f8ec402dba install-reddit: Ensure consumer-count.d is owned by the right user. 2013-10-14 13:55:56 -07:00
Neil Williams
8bdc62314a scraper_q: Gracefully degrade to thumbnail-only when no embedly.
Between the local filesystem media provider and this change, scraper_q
is workable after a default install now.
2013-10-14 13:55:56 -07:00
Neil Williams
b9f146d1e5 /prefs/apps: Make app icon URLs HTTPS friendly. 2013-10-14 13:55:56 -07:00
Neil Williams
8ea249eea4 POST_setappicon: Use VUploadLength.
This endpoint was missed when fixing file uploads after the
request.post -> request.POST deduplication fixup.
2013-10-14 13:55:56 -07:00
Neil Williams
8f7db4f3da Media Provider: Add "filesystem" provider for local nginx.
This media provider is for simple single-server installations where an
HTTP server running on the same machine handles serving of the static
media files.

An appropriate setup with nginx is now the default in the new install
script.
2013-10-14 13:55:56 -07:00
Neil Williams
5cbea9cdf4 Factor S3 media uploads out to new provider system.
This introduces a new "provider" system which allows core pieces of
code to be swapped out for different hosting setups.
2013-10-14 13:55:56 -07:00
Max Goodman
71099cdf02 Linkify user names in gold server seconds box. 2013-10-10 12:27:30 -07:00
Max Goodman
ba5d54c399 Embolden gold server seconds metric. 2013-10-10 12:27:30 -07:00
Max Goodman
daf5f8df27 Make gold expiration / gold server seconds boxes consistent. 2013-10-10 12:27:30 -07:00
Max Goodman
91930028be Tighten up gold server seconds box layout. 2013-10-10 12:27:30 -07:00
Max Goodman
a9da42be3e LESSify gold server seconds styles. 2013-10-10 12:27:30 -07:00
Brian Simpson
84fe26ed1e Gold gifts don't record pennies, calculate them from days. 2013-10-10 02:23:13 -04:00
Neil Williams
9bd172a32a /about/stylesheet: Add a link to revision history in the wiki. 2013-10-09 15:07:08 -07:00
Neil Williams
fd6cbff581 /about/stylesheet: Remove "show default stylesheet" option.
The main stylesheet is written in LESS now and so the raw CSS that's
visible on site is not very human-readable nor is it terribly useful.
2013-10-09 15:07:08 -07:00
Brian Simpson
e59925e5d6 ServerSecondsBar: filter out postcard gold. 2013-10-09 16:29:05 -04:00
Brian Simpson
e1ef6f3a35 Show gifts received by the user in ServerSecondsBar. 2013-10-09 16:29:05 -04:00
Brian Simpson
8c9b31d244 ServerSecondsBar can be made public. 2013-10-09 16:29:05 -04:00
Brian Simpson
57d17b4060 Higher precision version of format_timedelta. 2013-10-09 16:28:58 -04:00
Brian Simpson
5202a824c6 Show how many server seconds the user has paid for. 2013-10-09 16:28:43 -04:00
Brian Simpson
53c6a41e49 Update Babel to 1.0. 2013-10-09 16:28:43 -04:00
Brian Simpson
1406a36ee2 gold.py: lookup transactions by user. 2013-10-09 16:28:43 -04:00
Brian Simpson
e43c7f4f62 Bid: add charge_amount property. 2013-10-09 16:28:37 -04:00
Brian Simpson
e6f010b90c Fix another corner case in promote.accept_promotion.
Campaign that has been charged but won't go live until the future must
be updated. Also added a comment for the other corner case.
2013-10-09 16:28:24 -04:00
Brian Simpson
9fcf488269 get_billable_amount round down to nearest penny. 2013-10-09 11:41:53 -07:00