]> git.r.bdr.sh - rbdr/grita/blob - views/layout.haml
Tracking para Google Analytics
[rbdr/grita] / views / layout.haml
1 !!! 5
2 %html
3 %head
4 -unless @grito.nil?
5 -if @grito.errors.empty?
6 %title= "#{@grito.title} - ¡Grita!"
7 -else
8 %title ¡Grita!
9 %link{:rel => 'stylesheet', :type => 'text/css', :href => '/style.css', :title => 'default'}
10 %link{:rel => "icon", :href => "/images/favicon.ico", :type => "image/x-icon"}
11 %link{:rel => "icon", :href => "/images/favicon.png", :type => "image/png"}
12 %meta{'http-equiv' => 'Contet-Type', :content => 'text/html; charset=utf-8' }/
13 %script{:type => "text/javascript" }
14 :plain
15 var _gaq = _gaq || [];
16 _gaq.push(['_setAccount', 'UA-20018878-1']);
17 _gaq.push(['_trackPageview']);
18
19 (function() {
20 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
21 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
22 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
23 })();
24 %body
25 #wrapper
26 #header
27 %a{:id => 'logo', :href=> '/'}<
28 %span Grita!
29 #description
30 :markdown
31 Un servicio sencillo: **(1)** Encuentra algo que quieras decir. **(2)** escribelo en el espacio que se encuentra abajo. **(3a)** Compartelo por medio de internet con un sencillo link. **(3b)** Compartelo físicamente con códigos que puedes imprimir para que sean leídos con un celular.
32 %hr/
33 #body
34 =yield
35 #footer