suite
This commit is contained in:
parent
2375368a77
commit
788384de83
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -4,24 +4,49 @@
|
|||||||
|
|
||||||
|
|
||||||
-article_counter = article_counter || 1
|
-article_counter = article_counter || 1
|
||||||
-if !(article_counter+1).odd?
|
|
||||||
.article.left
|
|
||||||
.row-fluid
|
|
||||||
.span5
|
|
||||||
|
|
||||||
=image_tag article.image_file.file.url if article.image_file
|
|
||||||
|
|
||||||
.span7{:style => "padding-right:1em;"}
|
|
||||||
%h2=link_to article.lang("fr").title, public_article_path(:id => article.lang("fr").slug)
|
.article.left
|
||||||
=simple_format article.lang("fr").description
|
.row-fluid
|
||||||
-else
|
.span3
|
||||||
.article.right
|
|
||||||
.row-fluid
|
=image_tag article.image_file.file.url if article.image_file
|
||||||
.span7{:style => "padding-left:1em;"}
|
|
||||||
%h2=link_to article.lang("fr").title, public_article_path(:id => article.lang("fr").slug)
|
.span9{:style => "padding-left:2em;"}
|
||||||
=simple_format article.lang("fr").description
|
%h2=link_to article.lang("fr").title, public_article_path(:id => article.lang("fr").slug)
|
||||||
.span5
|
=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?
|
||||||
|
.article.left
|
||||||
|
.row-fluid
|
||||||
|
.span4
|
||||||
|
|
||||||
=image_tag article.image_file.file.url if article.image_file
|
=image_tag article.image_file.file.url if article.image_file
|
||||||
|
|
||||||
|
.span8{: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
|
||||||
|
-else
|
||||||
|
.article.right
|
||||||
|
.row-fluid
|
||||||
|
.span8{:style => "padding-right: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
|
||||||
|
.span4
|
||||||
|
|
||||||
|
=image_tag article.image_file.file.url if article.image_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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user