Max Goodman
51fc3101d7
Line up rank and midcol elements using a <style> element.
...
This is a hack to scale the .rank and .midcol elements consistently
across the spotlight box and link listings. We don't know the maximum
link score length until we get to the link listing, at which point we
output a <style> tag to space things globally on the page. It's horribly
ugly, but maybe not as ugly as the style tags and jQuery measurement
hacks it replaces...
2013-10-03 16:04:49 -07:00
Roger Ostrander
e041c348cd
JSON: Include spam_* settings for subreddits
2013-10-03 14:07:24 -07:00
Roger Ostrander
16ad702fe0
Builder: Do bulk domain-ban lookups
2013-10-03 14:07:14 -07:00
David Ehrmann
45a6dc3573
Update link to self-serve advertising rules on new promoted link page
2013-10-03 15:13:50 -04:00
Max Goodman
3341b2049e
Add suggestions for next areas to browse in next/prev line.
2013-10-02 14:04:13 -07:00
Max Goodman
97ee5639e5
/dev/api: Document POST_search_reddit_names.
2013-10-02 14:04:06 -07:00
Max Goodman
0e3fdf1462
toolbar: Restore frame name attributes.
...
This fixes the comments pane opening in a new window on Firefox.
2013-10-02 14:04:06 -07:00
Brian Simpson
359f4987de
Allow sponsors to create promoted links as other users.
2013-10-02 14:13:07 -04:00
Chad Birch
8096fb3a1d
Subreddit routing: add /about/sticky redirect
...
Redirects to the subreddit's current sticky post
2013-10-01 18:20:15 -06:00
Roger Ostrander
fbfe49442d
Pages: Disable 'approve' button for spam accounts
2013-10-01 17:16:35 -07:00
Max Goodman
55241e4b16
Remove invisible numcolmargin reference in compact.
2013-10-01 15:12:50 -07:00
Max Goodman
feba33d374
LESSify .nextprev styles.
2013-10-01 15:12:45 -07:00
Max Goodman
f99c41f434
toolbar: Add sandbox attribute to prevent JS redirection.
...
Thanks to Mathias Karlsson for suggesting this change.
2013-10-01 15:12:25 -07:00
Max Goodman
54fbe84fe6
toolbar: Convert inner frame to using iframes.
2013-10-01 15:12:20 -07:00
Max Goodman
b547a11d00
Fix validating uploads post-"storify" removal.
...
Refactoring out the old "storify" function and duplicated request data
params changed the semantics of file uploads. Uploads are now presented
as cgi.FieldStorage values to our validators, and need to be referenced
by their `.value` property to get the data.
2013-10-01 15:11:55 -07:00
Max Goodman
e692b01b01
Clean up lowercase duplications of request.GET/request.POST.
2013-10-01 15:11:52 -07:00
Brian Simpson
ee2c0028d7
Sponsors can create campaigns a year in advance.
2013-10-01 10:02:07 -04:00
Max Goodman
a9fdaf9c9c
Normalize multi URLs generated by share button.
...
This ensures that share button URLs don't carry over subdomains.
2013-09-27 18:21:25 -07:00
Max Goodman
1c052d1c6f
Generalize over18 page wording.
2013-09-27 18:21:25 -07:00
Max Goodman
cff04cde11
Super quick-n-dirty JS module error catching.
2013-09-27 18:21:25 -07:00
Chad Birch
29a2d2dc61
OAuth "read" scope: add search/related/duplicates
2013-09-27 18:21:25 -07:00
Neil Williams
c20db7e11d
Use cythonize to manage translation of .pyx -> .c.
...
This removes the need to run `make pyx` before running setup.py on an
initial install which had stopped working due to various imports needed
for the makefile. Additionally, cythonize is capable of tracking
dependencies the cython files have, such as external headers or other
cython files.
I had to upgrade setuptools to distribute to get v0.6.16 which is the
minimum required to properly use `cythonize` due to a bug in setuptools:
https://bitbucket.org/tarek/distribute/issue/195/
2013-09-27 14:05:38 -07:00
Neil Williams
ad08a19060
setup.py: Ensure we get WebTest <= 1.4.3.
...
The 2.x series of WebTest requires WebOb >= 1.2 which won't work for us.
2013-09-27 14:05:38 -07:00
Neil Williams
a035d8b9e2
setup.py: Remove obsolete line.
...
This should've gone away in 8b7b3a307b .
2013-09-27 14:05:38 -07:00
Neil Williams
89a56de538
setup.py: Include a dependency link for PyCAPTCHA 0.4.
...
PyPI only has versions for Python 2.3 and 2.4. Modern installs that
don't use our PPA to get a debianized copy of this library fail when
trying to resolve the setup.py install_requires dependencies. This fixes
the problem by using a reddit-hosted tarball of the 0.4 source (taken
directly from the source SVN repo).
2013-09-27 14:05:38 -07:00
Brian Simpson
a9f6ecf4a0
VDate takes a timedelta offset rather than datetime.
2013-09-27 15:21:10 -04:00
Brian Simpson
4be8c03273
Typo in POST_edit_campaign.
2013-09-27 15:21:10 -04:00
Brian Simpson
804d037488
Only call campaign.void hook when deleting a campaign.
...
Not necessary to call when only voiding a transaction.
2013-09-27 15:21:10 -04:00
Brian Simpson
be14b19c55
Use g.min_promote_bid in spotlight box message.
2013-09-27 15:21:10 -04:00
Brian Simpson
e65b059d36
Admin listing for reported promoted links.
2013-09-27 15:21:10 -04:00
Brian Simpson
7e52cf0e09
Accept reports on promoted links.
2013-09-27 15:21:10 -04:00
Brian Simpson
bf0fd5dc24
PromotedLinks can be selfposts.
2013-09-27 15:21:00 -04:00
Brian Simpson
ed18fc5b21
Delete g.countries.
2013-09-27 15:20:41 -04:00
Brian Simpson
48623ffd2c
Just let the user type in their country.
2013-09-27 15:20:41 -04:00
Brian Simpson
8cf4eaea0e
Open selfserve to all countries.
2013-09-27 15:20:35 -04:00
shlurbee
f8f05b12aa
Make recs api return objects instead of strings.
...
This format will make it possible to add extra info to the recs later
without breaking clients.
(In response to a suggestion from /u/radd_it in /r/multibeta)
2013-09-26 16:23:20 -07:00
Max Goodman
92da469504
Simple multi "share in explore subreddit" button.
2013-09-25 15:56:02 -07:00
Neil Williams
4d17b32801
Fix /stylesheet.css redirect for new-style static stylesheets.
2013-09-25 15:56:02 -07:00
Andre D
6d1a5340b3
submit: Add text to submit field for rules.
2013-09-25 15:13:19 -06:00
Andre D
8260159252
utils.js: Add an LRUCache object.
2013-09-25 15:13:15 -06:00
Brian Simpson
b884ef23cc
Future date limit on creating campaigns.
2013-09-25 14:55:09 -04:00
Brian Simpson
cac9702cc4
min_promote_future is an int.
2013-09-25 14:55:09 -04:00
Brian Simpson
186541adc6
PromoteLinkForm: separate start and end date.
2013-09-25 14:55:09 -04:00
Brian Simpson
798acac87e
Move error_fields into datepicker.
2013-09-25 14:55:09 -04:00
Brian Simpson
1e524aeb60
VDateRange better separates start and end dates.
2013-09-25 14:55:09 -04:00
Brian Simpson
03cd28a781
VDate: rework to use earliest and latest rather than future and past.
...
More flexible and easier to understand.
2013-09-25 14:55:09 -04:00
Brian Simpson
2f1746aaa0
POST_edit_campaign respects business days.
...
This makes the validator consistent with the logic used in
PromoteLinkForm.
2013-09-25 14:55:09 -04:00
Brian Simpson
af171d94ff
Remove unnecessary options in VDateRange usage for roadblocks.
2013-09-25 14:55:02 -04:00
Chad Birch
b319b576aa
Edit SR: cast wiki rev IDs to strings on conflict
2013-09-24 15:39:41 -06:00
Andre D
e66b786288
multis: Disable multi showcase subreddit by default.
2013-09-24 14:37:45 -07:00