diff options
Diffstat (limited to 'views/layout.haml')
| -rw-r--r-- | views/layout.haml | 6 |
1 files changed, 5 insertions, 1 deletions
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 |