mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-25 12:01:03 +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;
|
||||
}
|
||||
|
||||
#main_nobody {
|
||||
@include span-columns(9 of 12);
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
@include span-columns(3 of 12);
|
||||
@include omega();
|
||||
|
|
|
@ -46,7 +46,7 @@ div.article {
|
|||
|
||||
&.preview {
|
||||
border-radius: $base-border-radius;
|
||||
background: lighten($light-gray, 5%);
|
||||
background: white;
|
||||
padding: 20px;
|
||||
margin-bottom: 20px;
|
||||
box-shadow: $light-shadow;
|
||||
|
|
|
@ -24,7 +24,6 @@ class ArticlesController < ApplicationController
|
|||
raise AccessError unless @article.can_show? cuser
|
||||
@article.read_by! cuser if cuser
|
||||
# @article.record_view_count(request.remote_ip, cuser.nil?)
|
||||
@nobody = true
|
||||
end
|
||||
|
||||
def new
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<%= render partial: "navigation" %>
|
||||
<div class="wrapper">
|
||||
<div id="content">
|
||||
<div id="main">
|
||||
<div id="<%= @nobody ? 'main_nobody' : 'main' %>">
|
||||
<%= render partial: "messages" %>
|
||||
<%= yield %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue