diff --git a/app/assets/stylesheets/plume_print.css.scss b/app/assets/stylesheets/plume_print.css.scss index 03f48f5..12f7c4d 100644 --- a/app/assets/stylesheets/plume_print.css.scss +++ b/app/assets/stylesheets/plume_print.css.scss @@ -16,6 +16,13 @@ $beige:#F1F0EE; color:rgba(0,0,0,0.6); padding:2px 0; } + +.author{ + + color:rgba(0,0,0,0.6); + padding:0px 0; + text-align:right; +} #bottom{ position:absolute; bottom:0; diff --git a/app/views/admin/plume_articles/_form.html.haml b/app/views/admin/plume_articles/_form.html.haml index 39414a3..eff2f6f 100644 --- a/app/views/admin/plume_articles/_form.html.haml +++ b/app/views/admin/plume_articles/_form.html.haml @@ -5,7 +5,9 @@ = form.input :article_type, :label => "Type d'article :", :collection => [["Article pleine page", "page"],["Demi article", "demi"] ], :as => :select, :include_blank => false = form.input :title, :label => "Titre :" = form.input :description, :label => "Description courte :" + = form.input :author, :label => "Auteur :" = form.input :image_file_id, :as => :qi_image_select + .actions diff --git a/app/views/public/plumes/print.html.haml b/app/views/public/plumes/print.html.haml index 8a1a00f..f16c1ad 100644 --- a/app/views/public/plumes/print.html.haml +++ b/app/views/public/plumes/print.html.haml @@ -61,7 +61,10 @@ .render_block =render plume_article.block - + + -if plume_article.author? + .author + =plume_article.author -if plume_article.article_type == "page" -i = 0 =raw "