suite
This commit is contained in:
parent
27e76399eb
commit
5705daed24
@ -97,7 +97,7 @@ body{
|
||||
-webkit-text-size-adjust: none;
|
||||
font-weight:normal;
|
||||
height:100%;
|
||||
width:102%;
|
||||
width:100%;
|
||||
padding:0;
|
||||
margin:0;
|
||||
font-family:Lato, serif;
|
||||
|
@ -47,6 +47,7 @@ class Public::PlumesController < ApplicationController
|
||||
render :layout => false
|
||||
end
|
||||
format.pdf do
|
||||
@pdf = true
|
||||
render pdf: 'file_name',
|
||||
disposition: 'inline', # default 'inline'
|
||||
layout: false,
|
||||
|
@ -2,9 +2,11 @@
|
||||
|
||||
%td=plume.title
|
||||
%td
|
||||
=link_to "Voir", public_plume_path(plume), :target => "plume_#{plume.id}"
|
||||
=link_to "Version en ligne", public_plume_path(plume), :target => "plume_#{plume.id}"
|
||||
="-"
|
||||
=link_to "Voir la plume (pdf)", print_public_plume_path(plume, :format => "pdf"), :target => "plume_pdf_#{plume.id}"
|
||||
=link_to "Version Pdf", print_public_plume_path(plume, :format => "pdf"), :target => "plume_pdf_#{plume.id}"
|
||||
="-"
|
||||
=link_to "Aperçu taille PDF", print_public_plume_path(plume, :format => "html"), :target => "plume_pdfh_#{plume.id}"
|
||||
|
||||
|
||||
|
||||
|
@ -123,5 +123,12 @@
|
||||
%p
|
||||
N’hésitez pas à nous contacter et vous inscrire au 04 76 91 34 33, par mail à <a href="mailto:contact@lepicvert.asso.fr" >contact@lepicvert.asso.fr</a>, ou en consultant notre site <a href="http://lepicvert.org" target="_blank">www.lepicvert.org</a>
|
||||
|
||||
|
||||
|
||||
-if !@pdf
|
||||
:scss
|
||||
|
||||
.page{
|
||||
margin:20px auto;
|
||||
box-shadow:0 0 25px rgba(0,0,0,0.3);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user