From 68377ba4ab5c1dd852aa850a24ed13e10efbe801 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Wed, 4 Feb 2015 00:40:21 +0530 Subject: [PATCH] add class for container div on 404 page --- app/controllers/application_controller.rb | 1 + app/views/layouts/no_ember.html.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ff805687b44..cb898bbb68b 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -376,6 +376,7 @@ class ApplicationController < ActionController::Base def build_not_found_page(status=404, layout=false) category_topic_ids = Category.pluck(:topic_id).compact + @container_class = "container not-found-container" @top_viewed = Topic.where.not(id: category_topic_ids).top_viewed(10) @recent = Topic.where.not(id: category_topic_ids).recent(10) @slug = params[:slug].class == String ? params[:slug] : '' diff --git a/app/views/layouts/no_ember.html.erb b/app/views/layouts/no_ember.html.erb index 81097d4e863..e95092320ba 100644 --- a/app/views/layouts/no_ember.html.erb +++ b/app/views/layouts/no_ember.html.erb @@ -35,7 +35,7 @@ -
+
<%= yield %>