This commit is contained in:
Nicolas Bally 2017-09-13 23:04:39 +02:00
parent 2375368a77
commit 788384de83
4 changed files with 48 additions and 18 deletions

View File

@ -143,6 +143,7 @@ h3{
#body{ #body{
margin:0 20px; margin:0 20px;
margin-top:30px; margin-top:30px;
min-height:400px;
} }
@ -496,6 +497,7 @@ cursor:pointer
background:#f2f2f2; background:#f2f2f2;
max-width:1000px; max-width:1000px;
margin-top:30px; margin-top:30px;
img{ img{
position:relative; position:relative;
top:-30px; top:-30px;

View File

@ -67,6 +67,7 @@
#menu-top #menu-top
#menu #menu
=link_to image_tag( "/logo.png", :class => "logo", :alt => ""), "/" =link_to image_tag( "/logo.png", :class => "logo", :alt => ""), "/"
=render(:partial => "public/shared/first_menu") =render(:partial => "public/shared/first_menu")
.clear .clear
@ -154,7 +155,7 @@
$("#big_menu_"+$(this).data("big-menu")).show() $("#big_menu_"+$(this).data("big-menu")).show()
%h2{:style => "text-align:center"} Actualités %h2{:style => "text-align:center;font-size:34px;margin-top:50px"} Actualités
=render :collection => Article.recents, :partial => "public/articles/article" =render :collection => Article.recents, :partial => "public/articles/article"
#newsletter #newsletter

View File

@ -4,23 +4,48 @@
-article_counter = article_counter || 1 -article_counter = article_counter || 1
.article.left
.row-fluid
.span3
=image_tag article.image_file.file.url if article.image_file
.span9{:style => "padding-left:2em;"}
%h2=link_to article.lang("fr").title, public_article_path(:id => article.lang("fr").slug)
=simple_format article.lang("fr").description
%br
%br
=link_to "Lire la suite", public_article_path(:id => article.lang("fr").slug), :class => "plus" if article.blocks.where(:lang_site_id => 1).first.portlets.count > 0
-if false
-if !(article_counter+1).odd? -if !(article_counter+1).odd?
.article.left .article.left
.row-fluid .row-fluid
.span5 .span4
=image_tag article.image_file.file.url if article.image_file =image_tag article.image_file.file.url if article.image_file
.span7{:style => "padding-right:1em;"} .span8{:style => "padding-left:2em;"}
%h2=link_to article.lang("fr").title, public_article_path(:id => article.lang("fr").slug) %h2=link_to article.lang("fr").title, public_article_path(:id => article.lang("fr").slug)
=simple_format article.lang("fr").description =simple_format article.lang("fr").description
%br
%br
=link_to "Lire la suite", public_article_path(:id => article.lang("fr").slug), :class => "plus" if article.blocks.where(:lang_site_id => 1).first.portlets.count > 0
-else -else
.article.right .article.right
.row-fluid .row-fluid
.span7{:style => "padding-left:1em;"} .span8{:style => "padding-right:2em;"}
%h2=link_to article.lang("fr").title, public_article_path(:id => article.lang("fr").slug) %h2=link_to article.lang("fr").title, public_article_path(:id => article.lang("fr").slug)
=simple_format article.lang("fr").description =simple_format article.lang("fr").description
.span5 %br
%br
=link_to "Lire la suite", public_article_path(:id => article.lang("fr").slug), :class => "plus" if article.blocks.where(:lang_site_id => 1).first.portlets.count > 0
.span4
=image_tag article.image_file.file.url if article.image_file =image_tag article.image_file.file.url if article.image_file

View File

@ -1,5 +1,7 @@
.links .links
=link_to ic(:home), "/", :class => "link" =link_to ic(:home), "/", :class => "link"
=link_to "La ferme","/la-ferme.html"
=link_to "Les activités", "/les-activites.html"
=link_to "Actualités", public_articles_path(), :class => "link" =link_to "Actualités", public_articles_path(), :class => "link"
-MenuItem.where(:parent_id => nil, :menu_id => Menu.first.id).order(:position).each do |menu_item| -MenuItem.where(:parent_id => nil, :menu_id => Menu.first.id).order(:position).each do |menu_item|
=menu_item_link(menu_item) =menu_item_link(menu_item)