X-Git-Url: https://git.r.bdr.sh/rbdr/grita/blobdiff_plain/3e43ab35988daae6dc69e6682aad4285f693ee8e..b316fed18eb47c27fcdbf8e2da4b248a6e00ce37:/views/layout.haml diff --git a/views/layout.haml b/views/layout.haml index 2954a06..e47f5e2 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -1,9 +1,26 @@ !!! 5 %html %head - %title ¡Grita! - %link{:rel => 'stylesheet', :type => 'text/css', :href => '/style.css', :title => 'default'} + -unless @grito.nil? + -if @grito.errors.empty? + %title= "#{@grito.title} - ¡Grita!" + -else + %title ¡Grita! + %link{:rel => 'stylesheet', :type => 'text/css', :href => '/style.css', :title => 'default'} + %link{:rel => "icon", :href => "/images/favicon.ico", :type => "image/x-icon"} + %link{:rel => "icon", :href => "/images/favicon.png", :type => "image/png"} %meta{'http-equiv' => 'Contet-Type', :content => 'text/html; charset=utf-8' }/ + %script{:type => "text/javascript" } + :plain + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-20018878-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); + })(); %body #wrapper #header