Commit Graph

739 Commits

Author SHA1 Message Date
Keith Mitchell
29f4493ab6 Confirm removal in admin mode 2011-07-28 11:04:23 -07:00
Keith Mitchell
6c100914b1 Reverse lookup of blocked user 2011-07-28 11:03:57 -07:00
Max Goodman
4b6b4d88a6 Move doctypes to the absolute top of template output.
Leading whitespace can cause errors in some parsers (such as strict XML
parsers).
2011-07-26 10:52:25 -07:00
Max Goodman
c5d59cd6a6 Remove admin check from admin distinguished items. 2011-07-22 22:18:00 -07:00
Neil Williams
4758ac8d2e Make read-only mode slightly less frustrating.
Also includes some work on heavy-load mode which
isn't being used right now.
2011-07-22 22:04:55 -07:00
Neil Williams
2397f627a0 Look up subscriber by paying_id when missing attr. 2011-07-22 21:42:43 -07:00
Keith Mitchell
b8023e73ec AttributeError in validator.py:VMessageRecipient
AttributeError: 'NoneType' object has no attribute '_id'(b412c68f4d2e201e4f4c4a459776dafe)
Introduced after blacklist push.
2011-07-22 21:42:43 -07:00
Max Goodman
c1c5fbd9c4 Remove dead code. 2011-07-22 17:50:06 -07:00
Neil Williams
55bee5223d VotesByLink was incorrectly storing VotesByAccount. 2011-07-22 13:21:12 -07:00
Jason Harvey
eacdfc1d6a Allow gold users to see 100 subreddits at once 2011-07-22 11:42:24 -07:00
Paradox
53740ec4e8 Fixed bug where clicking on context link (messages) took you to the main site 2011-07-22 11:42:04 -07:00
Max Goodman
e7ad7232ad Clean up css sprite building in the Makefile. 2011-07-22 11:42:04 -07:00
Paradox
58bde072e8 Fixed top-bar positioning to work better with taller logos. 2011-07-22 11:41:36 -07:00
Paradox
09d5614b68 Created new toggle_button def, reduced code duplication for save/hide buttons 2011-07-22 11:41:36 -07:00
Max Goodman
d2c2e90c28 Move GA into a utility. Add GA to mobile and track usage. 2011-07-22 11:41:36 -07:00
Paradox
88e5ad2763 Replaced old float-based header with new, flexbox based header 2011-07-22 11:41:36 -07:00
Paradox
3cd2905ff0 Adjusted padding on message CSS, fixed table breaking out of its container. 2011-07-22 11:41:36 -07:00
Paradox
307d47851a Added unhide to links 2011-07-22 11:41:36 -07:00
Paradox
ed340e8b71 Fix Logo left margin 2011-07-22 11:41:36 -07:00
Paradox
3216c4b6c2 Rendered compact.css as :compact style. 2011-07-22 11:41:36 -07:00
Paradox
b6a0a316fb Moved icon_button to its own namespace, and replaced old options-icon code. 2011-07-22 11:41:36 -07:00
Paradox
7625c56ab4 Made comment compose box collapse reply link 2011-07-22 11:41:36 -07:00
Paradox
3c5c9dc3c9 Changed buttons count to use newbutton class, using border-background. Added preloading. Changed way icons are called to use a sass @extend, providing easier-to-edit code. 2011-07-22 11:41:36 -07:00
Paradox
78dae6edea New design for header/top of page toolbar. Updated icons, added mod-mail, and got reddit/subreddit logos working 2011-07-22 11:41:36 -07:00
Paradox
f3af5faca6 Changed size of upvotes, now easier to hit 2011-07-22 11:41:36 -07:00
Paradox
e9d52238a6 Fixed .tagline order to make admins, followed by moderators, submitters, then friends 2011-07-22 11:41:36 -07:00
Paradox
141a68151e Created new SCSS mixin for working with mako sprites. Converted old sprites to new syntax 2011-07-22 11:41:36 -07:00
Paradox
b29f6347df Changed options expandos spacing to look better 2011-07-22 11:41:36 -07:00
Paradox
b47984ce07 Fixed arrows to use css, fixed options button in menu bar to use sprited images now 2011-07-22 11:41:36 -07:00
Paradox
dd72dd1bca Set up messages and inbox to use options-expandos 2011-07-22 11:41:36 -07:00
Max Goodman
0c683aea65 Strip surrounding quotes on sprite paths. 2011-07-22 11:41:35 -07:00
Max Goodman
d8ac604a0f Don't affect leading whitespace on sprite rules. 2011-07-22 11:41:35 -07:00
Max Goodman
2d845c4ed0 Hack nymph.py to handle sprite comments anywhere in a line. 2011-07-22 11:41:35 -07:00
Max Goodman
ef5e77a289 Add sprite for compact.css to the make process. 2011-07-22 11:41:35 -07:00
Paradox
ecb4a3d456 Prepared SASS file for sprites.
Added sprite declarations

Changed output style to :compact, for single-line CSS output
2011-07-22 11:41:35 -07:00
Paradox
3142bee446 Added a touch/hover state to options expandos 2011-07-22 11:41:35 -07:00
Paradox
12c521c274 Moved domain link from options expando to tagline 2011-07-22 11:41:35 -07:00
Paradox
9bbf7081af Added options-expando to comments 2011-07-22 11:41:35 -07:00
Paradox
b7e6aa008a Options expandos on links, cleaned up old parts of CSS, added icons 2011-07-22 11:41:32 -07:00
Neil Williams
40eedd012d Add --proctitle to paster run.
When the setproctitle module is available and --proctitle is passed,
paster run will set the process title (as seen by ps, top, etc.) to the
specified value.
2011-07-22 11:18:55 -07:00
Neil Williams
ddc3bafee0 Move SubredditPopularityByLanguage to models. 2011-07-21 16:05:10 -07:00
Neil Williams
f8efeb60f3 Update to pycassa 1.1.0 for 0.8 compatibility. 2011-07-19 15:38:14 -07:00
Brian Simpson
f8c21e4f7d Remove the ability for mods to approve a deleted link. This prevents the deleted
then approved link from becoming visible.
2011-07-19 14:40:14 -07:00
Neil Williams
165c3d12d6 Remove unnecessary conditions from some queries.
PG9 doesn't like the query from _load_link_comments
in comment_tree.py.

thing.py will automatically filter deleted and spam items
out of thing queries if no rules are specified for those
columns. To get around this, some queries, including the
_load_link_comments one, will specify a rule
like _spam == (True, False). This rule was left in the ruleset,
despite the fact that it's completely unnecessary from the
SQL's standpoint. Its presence then triggered the need of a
join against the thing table when only the data table was
truly necessary. The query planner in PG9 doesn't like this
particular query when it requires a join and will force a
full table scan as a result.

This patch notes the special case of _spam/_deleted ==
(True,False) and turns off the default filtering but removes
the rules from the query. This saves some WHERE clauses
and more importantly removes the need for a JOIN in queries
like this one.
2011-07-19 12:23:14 -07:00
Brian Simpson
da9736a8b2 Hide NSFW links from logged in under 18 users. 2011-07-16 17:40:58 -07:00
Zeno
8f5ed2a9c5 Make "Hide posts if liked" ignore your own posts. 2011-07-13 10:19:16 -07:00
Logan Hanks
537a2bab67 Fix the param names in top/controversial listings. 2011-07-12 10:17:42 -07:00
Erik Karulf
83058d48ce Use constant-time string comparison for auth. 2011-07-11 16:05:10 -07:00
Logan Hanks
9344853401 ControversyTimeMenu needs to use POST, too. 2011-07-11 14:30:17 -07:00
Logan Hanks
f957e00539 Fix search and user sort selector bug. 2011-07-07 22:00:01 -07:00