jfn_app/app/views/admin/articles/_article.html.haml
2012-02-12 16:03:16 +01:00

25 lines
1021 B
Plaintext

%tr#article_row.article_row{:id => article.id}
%td{:style => "width:130px;"}
.QI_background_resize{:style => "width:120px;height:120px;"+("background-image: url('#{article.image_file.file.large.medium.small.thumb.url}');"if article.image_file).to_s }
%td{:style => "width:200px"}= l(article.published_at, :format => :date) if article.published_at?
%td=article.title
%td= "oui" if article.enabled
%td.actions
= link_to i(:trash_stroke, :blue), [:admin, article], :confirm => 'Voulez-vous vraiment supprimer cet article ?', :method => :delete, :remote => true
= link_to i(:pen_alt_fill, :blue), edit_admin_article_path(article)
= #link_to i(:trash_stroke, :blue), [:admin, article], :confirm => 'Voulez-vous vraiment supprimer cette actualité ?', :method => :delete, :remote => true
= #link_to i(:plus_alt, :blue), edit_admin_article_path(article), :style => "padding:5px;", :class => "show_details"
=# link_to i(:pen_alt_fill, :blue), edit_admin_article_path(article), :remote => true