]> git.r.bdr.sh - rbdr/grita/blobdiff - views/layout.haml
Version 1.0 Como quien dice
[rbdr/grita] / views / layout.haml
index 2954a06c915b0750cb3038270a1b83ddeb04322d..6fed8088883c95025c516d69cb37c112131421c5 100644 (file)
@@ -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