Commit Graph

4583 Commits

Author SHA1 Message Date
Neil Williams
adee8347e1 Replace closure compiler with Uglify.
Uglify is 2x faster than Closure Compiler at minifying our JS.  The
resultant output is slightly larger than CC's when ungzipped, but
slightly smaller when gzipped.
2014-07-02 17:46:39 -07:00
Brian Simpson
edc3c03d4f NamedButton: pass css_class to NavButton constructor. 2014-07-01 20:59:56 -04:00
Chad Birch
f2367d4ae9 Removal message: add date/time info in tooltip 2014-07-02 14:18:51 -06:00
Jordan Milne
d7af2a5b28 Hide private SR details on RSS error pages 2014-07-02 14:18:47 -06:00
Brian Simpson
c42f86dac1 menus: Clean up imports. 2014-07-01 19:21:34 -04:00
Brian Simpson
9a3b904c5a Mark "admins*" text for translation. 2014-07-01 19:21:34 -04:00
Brian Simpson
0d239e1f6e Delete unused heavydrop navmenu type. 2014-07-01 19:21:34 -04:00
Brian Simpson
cf5057e8cc Delete unused multicolumn navmenu. 2014-07-01 19:21:34 -04:00
Brian Simpson
447a49ebda Set cachable_attrs on all buttons and menus. 2014-07-01 19:21:34 -04:00
Brian Simpson
284296ee20 Untangle menus and buttons. 2014-07-01 19:21:34 -04:00
Brian Simpson
25ead65cf0 Delete unused selected argument in adminbar.html. 2014-07-01 19:21:06 -04:00
Brian Simpson
93ee2babb3 Move setting can_flair from builder to Link.add_props. 2014-06-30 16:41:00 -04:00
Brian Simpson
9a3e6accd4 Remove user and link flair from universal render cache key.
Instead set as needed on templates that use flair.
2014-06-30 16:41:00 -04:00
Brian Simpson
d6f257401a Cleanup wrapped_flair. 2014-06-30 16:41:00 -04:00
Brian Simpson
f51b77a139 User flair is disabled on FakeSubreddits. 2014-06-30 16:41:00 -04:00
Brian Simpson
fc47f863a5 Comment.add_props: only set full_comment_count on profilepage.
This avoids invalidating render cached comments whenever the link's
comment count changes.
2014-06-30 16:40:52 -04:00
Chad Birch
2120938be9 Messages: don't mark read when viewing one message 2014-06-30 14:04:38 -06:00
Chad Birch
da610fe379 utils: Remove unused spaceout function 2014-06-30 14:04:33 -06:00
Brian Simpson
53f8d3d959 Don't let users pay for an ad that has a too early start date. 2014-06-30 13:16:21 -04:00
Brian Simpson
74fbe8fe46 Reduce client side comment ratelimit. 2014-06-30 13:16:21 -04:00
Brian Simpson
412bdf2312 Track render cache hits and misses. 2014-06-30 13:16:21 -04:00
Lawrence Craft
dab96714bf Fix sort links on profile page. 2014-06-30 13:16:21 -04:00
Chad Birch
a5e8661fba Contest mode: add infobar to comment page 2014-06-26 13:36:24 -06:00
Chad Birch
b0bc3c4f2f Contest mode: support score including only upvotes
If a subreddit has the "contest_mode_upvotes_only" attribute as True
(currently must be set manually), scores while in contest mode in that
subreddit will only include upvotes.
2014-06-26 13:36:19 -06:00
Chad Birch
1c6128702f Contest mode: sort by "top" for moderators 2014-06-26 13:36:13 -06:00
Chad Birch
e797df7a97 Prefs: fix "don't show me sites..." label 2014-06-26 13:36:03 -06:00
Chad Birch
ffbbeff062 Prefs: remove some obsolete i18n strings 2014-06-26 13:35:56 -06:00
Chad Birch
99b9048d6a API: add upvote_ratio to Link if on permalink page 2014-06-26 13:35:48 -06:00
Chad Birch
c0f04090ca Change "like it" to "upvoted" 2014-06-26 13:35:43 -06:00
Brian Simpson
7b034e29dd Don't render cache WrappedUser.
It's almost always embedded in something else that's cached.
2014-06-26 04:58:24 -04:00
Brian Simpson
d1f4b40e54 Don't explicitly render WrappedUser in printable.mobile.
The mako_websafe filter will do that.
2014-06-26 04:58:24 -04:00
Brian Simpson
8bb83da13f Don't explicitly render WrappedUsers in comment templates. 2014-06-26 04:58:20 -04:00
Brian Simpson
69240abeee Let moderators include a message when banning. 2014-06-24 05:58:39 -04:00
Brian Simpson
cb1e1e4021 _ThingSavesBySubreddit: Get more saved values. 2014-06-24 01:07:11 -04:00
Brian Simpson
ac83646420 Add a notice when localized default subreddits are used.
Also let users opt-out and see the global default subreddits.
2014-06-24 01:07:10 -04:00
Brian Simpson
81ee370647 Fix if statements in prefoptions.html. 2014-06-24 01:07:10 -04:00
Jordan Milne
51ff66a271 Add VModhashIfLoggedIn validator. 2014-06-24 01:07:10 -04:00
Brian Simpson
3344ff05a1 Don't render cache UserText.
They are usually embedded in a Printable and will get cached
as part of that entire object.
2014-06-24 01:02:35 -04:00
Brian Simpson
7774e08ac4 Unsafe UserText link_childs. 2014-06-24 01:02:28 -04:00
Brian Simpson
facd57bca3 Don't render cache PrintableButtons subclasses.
This includes BanButtons, LinkButtons, CommentButtons, and
MessageButtons. These buttons templates shouldn't be cached on their
own because they'll be cached as part of the Printable template
(Link, Comment, or Message) that they're embedded in.
2014-06-24 01:02:02 -04:00
Brian Simpson
6d37398c41 Add Styled.template_hash. 2014-06-24 01:01:55 -04:00
Jason Harvey
4fdf5c30fa Add "edit stylesheet" button to mod tools box. 2014-06-20 14:45:41 -08:00
Matt Lee
fda52cfbb6 Move WikiPageIniItem from gold plugin. 2014-06-20 14:19:39 -07:00
Matt Lee
4ad980fc43 Move advertising page from core to about plugin. 2014-06-20 14:19:39 -07:00
Chad Birch
f823d37cf8 Link: don't hide new link scores for mods 2014-06-18 15:50:12 -07:00
Chad Birch
d2368286df "% like it": get value from compute_votes 2014-06-18 14:18:59 -07:00
Chad Birch
8c9ad4e2f6 Stop displaying upvote/downvote numbers
This removes all displays of specific upvote/downvote numbers through
both the site and API, and only displays score.

Due to the API not previously including score for comments, all apps
were calculating the score themselves by doing ups - downs. So as to not
break everything, we now pass the score as the number of upvotes as
well, and always say that there are 0 downvotes. This should result in
still showing correct scores, but will make it look like nothing is ever
being downvoted in any apps that expose ups/downs.
2014-06-18 14:18:50 -07:00
Chad Birch
b049edc5c1 Comment JSON: add score attr 2014-06-18 14:18:43 -07:00
umbrae
95be363903 Controversy: be defensive against negative ups/downs (bad data) 2014-06-18 00:20:43 -07:00
umbrae
6ced69c762 Update controversy algorithm to take magnitude more into account. 2014-06-18 00:20:38 -07:00