FIX: /categories page on mobile

This commit is contained in:
Régis Hanol
2016-08-19 01:47:00 +02:00
parent 7195a103ab
commit eb953c0904
8 changed files with 201 additions and 72 deletions

View File

@ -16,7 +16,10 @@ class CategoriesController < ApplicationController
@description = SiteSetting.site_description
category_options = { is_homepage: current_homepage == "categories".freeze }
category_options = {
is_homepage: current_homepage == "categories".freeze,
include_topics: view_context.mobile_view? || params[:include_topics]
}
@category_list = CategoryList.new(guardian, category_options)
@category_list.draft_key = Draft::NEW_TOPIC