]> git.r.bdr.sh - rbdr/grita/blobdiff - views/layout.haml
Cambio de Layout + Favicon
[rbdr/grita] / views / layout.haml
index 2954a06c915b0750cb3038270a1b83ddeb04322d..160b85847c0f4c989b1997cd9029b0d450e12cbc 100644 (file)
@@ -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