crossey_app/app/views/layouts/public.html.haml
Nicolas Bally 9985abfd44 suite
2018-02-05 10:54:54 +01:00

153 lines
4.5 KiB
Plaintext

!!!
%html{ :'xml:lang' => "fr", :lang => "fr" }
%head
%meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" }
%title
Site officiel de la mairie de Saint Etienne de Crossey | Isère | Rhône-Alpes | France |
= @title.to_s || ""
= stylesheet_link_tag 'public'
= javascript_include_tag "public"
%body
#top
Commune de
%br
%strong Saint Etienne de Crossey
=link_to image_tag("style/frontend/cms/logo_top.gif", :id => "logo"), "/"
#struct
#main
#gauche
#date
=l Time.now
#red
%ul#menu.sf-menu.sf-vertical
%li=link_to "Accueil", "/"
=render :partial => "public/shared/first_menu", :collection => MenuItem.where(:parent_id => nil, :enabled => true, :visible => true, :archived => nil).order(:position), :as => :menu_item
%li=link_to "NEWSLETTER : <<<< nouveau", new_public_inscrit_path
%p{:style => "clear:left;"}
= yield :red_sidebar
#white
#acces_rapide
=image_tag "style/frontend/acces.gif"
=menu_item_link(MenuItem.find(8))
=menu_item_link(MenuItem.find(9))
=menu_item_link(MenuItem.find(10))
#calendar_sidebar=render :partial => "public/events/small_calendar"
= yield :sidebar
%br
%h2 Météo
%center
<SCRIPT LANGUAGE="JavaScript" charset="UTF-8" SRC="http://france.meteofrance.com/portlet/plugins/meteo/VignetteMeteoVille3.javascript?idLieu=383830" TYPE="text/javascript"></SCRIPT>
-if @accueil
#diaporama
=image_tag('diaporama/1.jpg')
#right
#camping
=link_to image_tag("camping.png", :alt => "Camping municipal pays voironnais"), "/services-aux-habitants/camping-en-chartreuse-isere.html"
<a href="https://www.facebook.com/CommunedeSaintEtiennedeCrossey/" target="_blank" style="background:#4267b2;font-weight:bold;text-align:center;font-size:1.2em;padding:12px 12px;padding-top:14px;display:block;">
<img src="/logo-fb.png" style="height:20px;margin-right:8px;">
Facebook
</a>
#echo
=menu_item_link(MenuItem.find(39))
%br
%br
=menu_item_link(MenuItem.find(100))
%br
%br
#agenda
=menu_item_link(MenuItem.find(5))
%br
%br
#dossier
=menu_item_link(MenuItem.find(282))
%br
%br
=menu_item_link(MenuItem.find(116))
%br
%br
=menu_item_link(MenuItem.find(114))
%br
%br
=menu_item_link(MenuItem.find(117))
%br
%br
=menu_item_link(MenuItem.find(298))
%br
%br
=menu_item_link(MenuItem.find(325))
%br
%br
=image_tag('style/une.gif', :style => "width:497px;")
#contenu{:style => ("margin-left:260px;float:none;width:auto;padding-right:201px;background:url('/images/style/fond.png') repeat-y top right" if @accueil).to_s}
-if flash[:notice]
#flash_notice
=raw flash[:notice]
-if flash[:error]
#flash_error
=raw flash[:error]
= yield :body
= yield
%p{:style => "clear:both;"}
%br
#bottom
=link_to image_tag("style/frontend/cms/logo_bot.jpg", :id => "bot"), "/"
#bot_info
Mairie : 04 76 06 00 11 © Mairie de St Etienne de Crossey - Tous droits réservés -
=menu_item_link(MenuItem.find(3))
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-19882327-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>