Adds a new js module and css file for mod tools, and a new page that
includes them. This is so that, moving forward, we don’t have to cram
everything into the reddit.js package.
In the create and update endpoints, send the rendered description
markdown in the response. We don’t have client-side markdown rendering,
so this is necessary for the rules page to be fully ajax-y.
A js module for handling api errors and client-side validation errors.
Right now, most of this is done through the jQuery-json response and
through custom code on a per-feature basis. This module provides a way
to consume API errors that would normally be displayed through the
jQuery-json response handler, as well as a way to define errors on the
client side that display in the same way.
Adds the following errors:
SR_RULE_EXISTS if trying to create a new rule with a short_name that
already exists.
SR_RULE_DOESNT_EXIST if trying to update a rule with a short_name that
does not exist.
SR_RULE_TOO_MANY if trying to create a new rule when the subreddit
already has the max number of rules.
Instead of preloading the report dialog, this will request it
when the report button is clicked so that the rules for that
subreddit are populated in the form.
If the subreddit has rules, the note attached to the ban will
begin with the rule that was violated (`reason`) and mods can add
additional details through this `note` that would be appended to
the rule. This will be visible in the mod log and banned listing.
This adds the data structure for subreddit rules and a very basic
/about/rules where mods can add, edit, reorder, and delete rules. The
rules are ordered by priority and maintain short_name and description
fields.
To be able to do shortlink/id36 redirects, the user context has to be
set up to be able to check whether the user has access to view the
subreddit that the post is in. So this endpoint needs to be inside a
controller that's based on RedditController to make sure that info is
available.
New mobile image sizes:
1. mobile icon, 256 x 256 (previously 240 x 240)
2. header image, 10:3 aspect ratio (previously 16:9)
- maximum 1280 x 384 (previously 1280 x 720)
- minimum 640 x 192 (previously 640 x 360)