UX: fix container layout

This commit is contained in:
Arpit Jalan 2015-07-28 13:32:39 +05:30
parent b5977bb364
commit d6069e8c90
5 changed files with 5 additions and 5 deletions

View File

@ -434,7 +434,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"
@container_class = "wrap 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] : ''

View File

@ -1,5 +1,5 @@
<header class="d-header">
<div class="container">
<div class="wrap">
<div class="contents">
<div class="row">
<div class="title span13">

View File

@ -38,7 +38,7 @@
<body>
<noscript data-path="<%= request.env['PATH_INFO'] %>">
<%= render partial: 'header' %>
<div id="main-outlet" class="container">
<div id="main-outlet" class="wrap">
<!-- preload-content: -->
<%= yield %>
<!-- :preload-content -->

View File

@ -21,7 +21,7 @@
<header>
<a href="<%= path "/" %>"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo"></a>
</header>
<div id="main-outlet" class="container">
<div id="main-outlet" class="wrap">
<%= yield %>
</div>
<footer class="container">

View File

@ -20,7 +20,7 @@
<%- end %>
<section id='main'>
<%= render partial: 'header' %>
<div id="main-outlet" class="<%= @container_class ? @container_class : 'container' %>">
<div id="main-outlet" class="<%= @container_class ? @container_class : 'wrap' %>">
<%= yield %>
</div>
</section>