diff --git a/Gemfile.lock b/Gemfile.lock index eabed59..c7d2897 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -35,6 +35,12 @@ GEM arel (2.2.1) bcrypt-ruby (3.0.1) builder (3.0.0) + capistrano (2.11.2) + highline + net-scp (>= 1.0.0) + net-sftp (>= 2.0.0) + net-ssh (>= 2.0.14) + net-ssh-gateway (>= 1.1.0) carrierwave (0.5.8) activesupport (~> 3.0) coffee-rails (3.1.1) @@ -54,6 +60,7 @@ GEM formtastic (2.0.2) rails (~> 3.0) haml (3.1.4) + highline (1.6.11) hike (1.2.1) i18n (0.6.0) jquery-rails (1.0.19) @@ -63,6 +70,7 @@ GEM kaminari (0.12.4) rails (>= 3.0.0) kgio (2.7.2) + libv8 (3.3.10.4) mail (2.3.0) i18n (>= 0.4.0) mime-types (~> 1.16) @@ -70,6 +78,13 @@ GEM mime-types (1.17.2) multi_json (1.0.4) mysql2 (0.3.11) + net-scp (1.0.4) + net-ssh (>= 1.99.1) + net-sftp (2.0.5) + net-ssh (>= 2.0.9) + net-ssh (2.3.0) + net-ssh-gateway (1.1.0) + net-ssh (>= 1.99.1) orm_adapter (0.0.5) polyglot (0.3.3) rack (1.3.5) @@ -110,7 +125,9 @@ GEM sprockets (2.0.3) hike (~> 1.2) rack (~> 1.0) - tilt (!= 1.3.0, ~> 1.1) + tilt (~> 1.1, != 1.3.0) + therubyracer (0.9.10) + libv8 (~> 3.3.10) thor (0.14.6) tilt (1.3.3) treetop (1.4.10) @@ -135,6 +152,7 @@ PLATFORMS DEPENDENCIES acts_as_commentable acts_as_tree + capistrano carrierwave coffee-rails (~> 3.1.1) devise @@ -146,6 +164,7 @@ DEPENDENCIES rails (= 3.1.3) rmagick sass-rails (~> 3.1.5) + therubyracer turn (= 0.8.2) uglifier (>= 1.0.3) unicorn diff --git a/app/views/layouts/public.html.haml b/app/views/layouts/public.html.haml index e5cc51e..cb466d1 100644 --- a/app/views/layouts/public.html.haml +++ b/app/views/layouts/public.html.haml @@ -38,36 +38,7 @@ #footer_container #footer - .column1 - %h3 Bibliographie - %p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consectetur, nisl a viverra luctus, ligula dui suscipit mauris, nec vulputate dolor mi a ante. Donec dapibus tellus ut quam feugiat eget tincidunt mi congue. - %p - =link_to "en savoir +", "/pages/bibliographie.html" - %p{:style => "text-align:center;"} - =image_tag "livre1.png" -     - =image_tag "livre2.png" - - .column2 - %h3 Banque de donnée - %p lorem ipsum - %h3 Profitez de mon expérience ! - %p Conférences, formations, études... - %p{:style => "text-align:right;"} - =link_to "en savoir +", "/pages/presentation/profitez-de-mon-experience.html" - - - .column3 - %h3 A propos - %p - Je m’apelle Jean François Noblet, j’aime éperdument la vie, les hommes, les femmes, les enfants et la nature. - %br - Je suis anti-productivisme, anti-vitesse, anti-frix, anti-nucléaire et anti-pollution. - %br - Je suis pour la rigolade, l’amour, la nature, la liberté, l’humanisme et la paresse. - %p{:style => "text-align:right;"} - =link_to "Envi de mieux me connaître ?", "/pages/presentation.html" - %p{:style => "text-align:center;"}=image_tag "portrait.png", :alt => "Jean François Noblet" + =render :partial => "public/shared/footer" %p{:style => "clear:both;"} #legals diff --git a/app/views/public/home/home.html.haml b/app/views/public/home/home.html.haml index 7094132..f67deb4 100644 --- a/app/views/public/home/home.html.haml +++ b/app/views/public/home/home.html.haml @@ -29,26 +29,16 @@ .slider .slides .slides_container - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/01.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/02.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/03.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/04.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/05.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/06.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/07.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/08.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/09.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/10.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/11.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/12.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/13.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/14.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/15.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/16.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/17.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/18.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/19.jpg', :style => "width:1000px;height:460px;"), "" - .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/20.jpg', :style => "width:1000px;height:460px;"), "" + -photos = 1..20 + -photos = photos.sort {rand(8)} + -photos = photos.sort {rand(6)} + -photos = photos.sort {rand(4)} + -photos = photos[0..5] + -photos.each do |photo| + .slide{:style => "width:1000px;height:460px;"}=link_to image_tag('diaporama/'+("%02d" % photo)+'.jpg', :style => "width:1000px;height:460px;"), "" + + + @@ -85,41 +75,7 @@ %p{:style => "clear:both"} #footer_container.home #footer - .column1 - %h3 Bibliographie - %p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consectetur, nisl a viverra luctus, ligula dui suscipit mauris, nec vulputate dolor mi a ante. Donec dapibus tellus ut quam feugiat eget tincidunt mi congue. - %p{:style => "text-align:right;"} - =link_to "en savoir +", "/pages/bibliographie.html" - %p{:style => "text-align:center;"} - =image_tag "livre1.png" -     - =image_tag "livre2.png" - - .column2 - %h3 Banque de donnée - %p lorem ipsum - %p{:style => "text-align:right;"} - =link_to "en savoir +", "/pages/base-de-donnees.html" - %br - %br - %br - %h3 Profitez de mon expérience ! - %p Conférences, formations, études... - %p{:style => "text-align:right;"} - =link_to "en savoir +", "/pages/presentation/profitez-de-mon-experience.html" - - - .column3 - %h3 A propos - %p - Je m’appelle Jean François Noblet, j’aime éperdument la vie, les hommes, les femmes, les enfants et la nature. - %br - Je suis anti-productivisme, anti-vitesse, anti-fric, anti-nucléaire et anti-pollution. - %br - Je suis pour la rigolade, l’amour, la nature, la liberté, l’humanisme et la paresse. - %p{:style => "text-align:right;"} - =link_to "Envie de mieux me connaître ?", "/pages/presentation.html" - %p{:style => "text-align:center;"}=image_tag "portrait.png", :alt => "Jean François Noblet" + =render :partial => "public/shared/footer" %p{:style => "clear:both;"} #legals diff --git a/app/views/public/shared/_footer.html.haml b/app/views/public/shared/_footer.html.haml new file mode 100644 index 0000000..29ab02b --- /dev/null +++ b/app/views/public/shared/_footer.html.haml @@ -0,0 +1,42 @@ +.column1 + %h3 Bibliographie + %p + Vous trouverez ici la liste des livres et des 198 publications scientifiques rédigés par Jean François Noblet. + %p + Commande et photocopies disponibles sur simple demande: + =link_to "jf@noblet.me", "mailto:jf@noblet.me" + %p + =link_to "en savoir +", "/pages/bibliographie.html" + %p{:style => "text-align:center;"} + =image_tag "livre1.png" +     + =image_tag "livre2.png" + +.column2 + %h3 Profitez de mon expérience ! + %p + Vous cherchez un conférencier? un guide nature? un animateur de débat? Je suis libre et disponible. Contactez moi: + =link_to "jf@noblet.me", "mailto:jf@noblet.me" + %p{:style => "text-align:right;"} + =link_to "en savoir +", "/pages/presentation/profitez-de-mon-experience.html" + %br + %h3 Banque de donnée + %p + 30 000 observations naturalistes récoltées depuis 1970 par Jean-François NOBLET en Isère, Ardèche, Corse, Drôme, Gard, Alpes de Haute-Provence sont stockées dans la banque de données naturalistes de l'association Nature et Humanisme et gérées sur un ordinateur PC avec la logiciel File Maker Pro. + %p + Pour y avoir accès contactez + =link_to "jf@noblet.me", "mailto:jf@noblet.me" + + + +.column3 + %h3 A propos + %p + Je m’apelle Jean François Noblet, j’aime éperdument la vie, les hommes, les femmes, les enfants et la nature. + %br + Je suis anti-productivisme, anti-vitesse, anti-frix, anti-nucléaire et anti-pollution. + %br + Je suis pour la rigolade, l’amour, la nature, la liberté, l’humanisme et la paresse. + %p{:style => "text-align:right;"} + =link_to "Envi de mieux me connaître ?", "/pages/presentation.html" + %p{:style => "text-align:center;"}=image_tag "portrait.png", :alt => "Jean François Noblet" \ No newline at end of file