diff --git a/app/assets/javascripts/public.js.coffee b/app/assets/javascripts/public.js.coffee index 95cf703..b7f3b61 100644 --- a/app/assets/javascripts/public.js.coffee +++ b/app/assets/javascripts/public.js.coffee @@ -11,8 +11,25 @@ $ -> - + $("a[rel^='prettyPhoto']").fancybox() - \ No newline at end of file + $("#legals").click -> + + $('#legals_large').toggle() + $('#legals_large .content').css("margin-top",( ($(window).height()-$("#legals_large .content").height())/2)+"px") + return false + + $("#legals_large").click -> + + $('#legals_large').toggle(); + return false + + + $("#legals_large a").click -> + + $('#legals_large').toggle(); + return false + + \ No newline at end of file diff --git a/app/assets/stylesheets/public/layout.css.scss b/app/assets/stylesheets/public/layout.css.scss index 02fdc18..e04badc 100644 --- a/app/assets/stylesheets/public/layout.css.scss +++ b/app/assets/stylesheets/public/layout.css.scss @@ -557,3 +557,28 @@ footer{ } + + +#legals_large{ + background:rgba(250,250,250,0.8); + position:fixed; + top:0px; + bottom:0px; + left:0px; + right:0px; + width:100%; + height:100%; + display:none; + + .content{ + background:rgba(250,250,250,0.95); + padding:10px 30px; + margin:auto; + width:90%; + max-width:600px; + border:1px solid gray; + + + } + +} diff --git a/app/views/layouts/public.html.haml b/app/views/layouts/public.html.haml index 1b2007c..44b2794 100644 --- a/app/views/layouts/public.html.haml +++ b/app/views/layouts/public.html.haml @@ -52,16 +52,33 @@ %footer - %legals - Sauf mention contraire, textes & photos créés par - =link_to "Nicolas Bally", "mailto:info@nicolasbally.com" - sous - =link_to "license Creative Commons (BY-NC-ND)", "http://creativecommons.org/licenses/by-nc-nd/3.0/fr/", :target => "_blank" - =#link_to image_tag("front/cc-licenses-terms.png"), "http://creativecommons.org/licenses/by-nc-nd/3.0/fr/", :target => "_blank" - =" - " - Merci de m' - =link_to "envoyer un mail", "mailto:info@nicolasbally.com" - lors de toute utilisation de ce contenu - - =link_to "Mentions légales" + + Sauf mention contraire, textes & photos créés par + =link_to "Nicolas Bally", "mailto:info@nicolasbally.com" + sous + =link_to "license Creative Commons (BY-NC-ND)", "http://creativecommons.org/licenses/by-nc-nd/3.0/fr/", :target => "_blank" + =#link_to image_tag("front/cc-licenses-terms.png"), "http://creativecommons.org/licenses/by-nc-nd/3.0/fr/", :target => "_blank" + =" - " + Merci de m' + =link_to "envoyer un mail", "mailto:info@nicolasbally.com" + lors de toute utilisation de ce contenu - + =link_to "Mentions légales", "#", :id => "legals" + + #legals_large + .content + %p Le blog "http://blog.nicolasbally.com" est édité et hébérgé par l'entreprise Nicolas Bally + %p Le directeur de publication est Nicolas Bally + + %p Siège social : 1165 rte du châtelard, 38140 Réaumont, France + + %p + Siren : 512 769 787 + %br + Code APE : 6201Z + %br + N° TVA Intracommunautaire : FR50512769787 + + %p{:style => "text-align:center"}=link_to "Fermer cette fenêtre", "#" +