This commit is contained in:
Nicolas Bally 2015-10-21 16:56:48 +02:00
parent 9e3dd91a06
commit 9ba5131417
4 changed files with 50 additions and 18 deletions

View File

@ -325,7 +325,7 @@ margin:auto;
} }
} }
$header_font : "Source sans pro"; $header_font : "source-sans-pro";
.top_background{ .top_background{
@ -370,7 +370,7 @@ text-align:center;
h1,h2,h3,h4{ h1,h2,h3,h4{
text-align:left; text-align:left;
font-weight: 400; font-weight: 400;
font-family:$header_font; font-family:$header_font, Arial, sans-serif;
a{ a{
color:black; color:black;
@ -381,7 +381,7 @@ a{
margin-top:10px; margin-top:10px;
margin-bottom:-20px; margin-bottom:-20px;
font-size:18px; font-size:18px;
font-family:$header_font; font-family:$header_font, Arial, sans-serif;
} }
h1{ h1{
font-size:30px; font-size:30px;
@ -536,7 +536,7 @@ article{
font-weight:bold; font-weight:bold;
font-size:22px; font-size:22px;
line-height:24px; line-height:24px;
font-family:$header_font; font-family:$header_font, arial, sans-serif;
} }
} }
@ -547,7 +547,7 @@ article{
.image{ .image{
width:15%; width:15%;
float:left; float:left;
background:#69952f; background:#757575;
height:80px; height:80px;
overflow:hidden; overflow:hidden;
margin-bottom:5px; margin-bottom:5px;
@ -564,7 +564,7 @@ article{
font-weight:bold; font-weight:bold;
font-size:16px; font-size:16px;
padding-left:10px; padding-left:10px;
font-family:$header_font; font-family:$header_font, Arial, sans-serif;
} }
} }
@ -576,10 +576,24 @@ h1{
font-weight:bold; font-weight:bold;
font-size:22px; font-size:22px;
line-height:24px; line-height:24px;
font-family:$header_font; font-family:$header_font, Arial, sans-serif;
} }
.article_date{ .article_date{
text-align:left; text-align:left;
margin-bottom:10px; margin-bottom:10px;
}
.event{
.image{
max-width:150px;
max-height:100px;
height:500px;
width:100%;
background:#757575;
}
} }

View File

@ -1,15 +1,15 @@
= event_human_date(event) = event_human_date(event)
%ul .event
%li .image=image_tag event.image_file.file.large.medium.url if event.image_file
%strong=event.title
%strong=event.title
-if event.description and event.description != "" -if event.description and event.description != ""
=":" =simple_format event.description
= truncate(event.description, :length => 150)
-if event.block.portlets.size > 0
-if event.block.portlets.size > 0 %br=link_to "En savoir plus", public_event_path(event)
%br=link_to "En savoir plus", public_event_path(event)

11
test/fixtures/faqs.yml vendored Normal file
View File

@ -0,0 +1,11 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
title: MyString
description: MyText
enabled: false
two:
title: MyString
description: MyText
enabled: false

7
test/models/faq_test.rb Normal file
View File

@ -0,0 +1,7 @@
require 'test_helper'
class FaqTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end