mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Change news articles to be seperate boxes
This commit is contained in:
parent
db34717173
commit
658e35ba7b
4 changed files with 6 additions and 3 deletions
|
@ -49,6 +49,10 @@ body#tinymce {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#main_nobody {
|
||||||
|
@include span-columns(9 of 12);
|
||||||
|
}
|
||||||
|
|
||||||
#sidebar {
|
#sidebar {
|
||||||
@include span-columns(3 of 12);
|
@include span-columns(3 of 12);
|
||||||
@include omega();
|
@include omega();
|
||||||
|
|
|
@ -46,7 +46,7 @@ div.article {
|
||||||
|
|
||||||
&.preview {
|
&.preview {
|
||||||
border-radius: $base-border-radius;
|
border-radius: $base-border-radius;
|
||||||
background: lighten($light-gray, 5%);
|
background: white;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
box-shadow: $light-shadow;
|
box-shadow: $light-shadow;
|
||||||
|
|
|
@ -24,7 +24,6 @@ class ArticlesController < ApplicationController
|
||||||
raise AccessError unless @article.can_show? cuser
|
raise AccessError unless @article.can_show? cuser
|
||||||
@article.read_by! cuser if cuser
|
@article.read_by! cuser if cuser
|
||||||
# @article.record_view_count(request.remote_ip, cuser.nil?)
|
# @article.record_view_count(request.remote_ip, cuser.nil?)
|
||||||
@nobody = true
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def new
|
def new
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<%= render partial: "navigation" %>
|
<%= render partial: "navigation" %>
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<div id="main">
|
<div id="<%= @nobody ? 'main_nobody' : 'main' %>">
|
||||||
<%= render partial: "messages" %>
|
<%= render partial: "messages" %>
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue