X-Git-Url: https://git.r.bdr.sh/rbdr/grita/blobdiff_plain/3e43ab35988daae6dc69e6682aad4285f693ee8e..a847ac2f16eab830b4421a4a9643cb9ee58b30ae:/views/layout.haml diff --git a/views/layout.haml b/views/layout.haml index 2954a06..6fed808 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -1,7 +1,11 @@ !!! 5 %html %head - %title ¡Grita! + -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'} %meta{'http-equiv' => 'Contet-Type', :content => 'text/html; charset=utf-8' }/ %body