This commit adds a new docs_show_topic_excerpts site setting which, when enabled and used in conjunction either with the always_include_topic_excerpts site setting or the serialize_topic_excerpts theme modifier. For the theme modifier, this commit also fixes an issue with the Docs::Query class. Since we were re-initializing Guardian within the class (rather than using the guardian passed down from the controller), we did not have the request information needed to determine theme_id, which meant that the theme modifier had no effect. We now pass down guardian from the controller instead. In general guardian is almost always better than a user object, since we can always just call guardian.user. Adds a simple system spec as well. |
||
|---|---|---|
| .. | ||
| locales | ||
| routes.rb | ||
| settings.yml | ||