diff --git a/app/views/public/plumes/_sommaire.html.haml b/app/views/public/plumes/_sommaire.html.haml index 1195a4a..e3935e6 100644 --- a/app/views/public/plumes/_sommaire.html.haml +++ b/app/views/public/plumes/_sommaire.html.haml @@ -1,6 +1,7 @@ .sommaire_panel .content - %h2 Sommaire + =link_to public_plume_path(@plume) do + %h2 Sommaire -@plume.plume_cats.order(:position).each do |plume_cat| -if plume_cat.title != "Brèves" diff --git a/app/views/public/plumes/_top.html.haml b/app/views/public/plumes/_top.html.haml index e17161c..ffb24a8 100644 --- a/app/views/public/plumes/_top.html.haml +++ b/app/views/public/plumes/_top.html.haml @@ -1,5 +1,5 @@ #plume_header - =link_to image_tag("/plume-logo.png", :class => "plume_logo"), public_plume_path(@plume) + =link_to image_tag("/plume-logo.png", :class => "plume_logo"), (public_plumes_path) =image_tag "/plume-logo-mobile.png", :class => "plume_logo_mobile" .baseline Bulletin indépendant des lobbies, d’un électorat, consacré à l’intérêt général et super intéressant ! diff --git a/app/views/public/plumes/index.html.haml b/app/views/public/plumes/index.html.haml new file mode 100644 index 0000000..519d190 --- /dev/null +++ b/app/views/public/plumes/index.html.haml @@ -0,0 +1,56 @@ +#plume_wrapper + =render :partial => "top" + + .plume_index + -Plume.where(:enabled => true).order("number DESC").each do |plume| + =link_to public_plume_path(plume) do + .plume_panel + =image_tag plume.couv_image_file.file.url + .desc + %h3 + La plume + ="n°#{plume.number}" + %strong + =plume.p_version + .clear + +:scss + .plume_index{ + max-width:1100px; + padding:40px 30px; + margin:20px auto; + + .plume_panel{ + width:48%; + margin:0 1%; + margin-bottom:20px; + h3{ + font-size:35px; + padding-top:5px; + margin-bottom:0; + } + strong{ + display:block; + padding:5px 0; + color:black; + font-size:17px; + } + img{ + width:150px; + float:left; + } + .desc{ + margin-left:165px; + + } + } + + + } + .clear{ + clear:both; + } + + #plume_wrapper{ + padding-bottom:20px; + } \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index e9724e7..e1d767a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,7 @@ # -*- encoding : utf-8 -*- Survey::Application.routes.draw do + get "plumes.:f" => "public/plumes#index", :as => :public_plumes, :f => "html" + get "mallette-peda" => redirect("/nos-actions/education-a-lenvironnement-et-developpement-durable/mallette-gaspillage-alimentaire-telechargement.html") get "malette-peda" => redirect("/nos-actions/education-a-lenvironnement-et-developpement-durable/mallette-gaspillage-alimentaire-telechargement.html")