52 lines
1.8 KiB
Plaintext
52 lines
1.8 KiB
Plaintext
-lang_article = article.lang_articles.find_by_lang_site_id(@lang.id)
|
|
|
|
-img_url = article.image_file.file.large.url if article.image_file
|
|
|
|
|
|
-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?
|
|
.article.left
|
|
.row-fluid
|
|
.span4
|
|
|
|
=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
|
|
|
|
|