X-Git-Url: https://git.r.bdr.sh/rbdr/grita/blobdiff_plain/3e43ab35988daae6dc69e6682aad4285f693ee8e..dd8a375b20d10bb986d4b143f1cf923aec7d6b6e:/views/layout.haml diff --git a/views/layout.haml b/views/layout.haml index 2954a06..160b858 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -1,8 +1,14 @@ !!! 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' }/ %body #wrapper