summaryrefslogtreecommitdiff
path: root/views/layout.haml
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2010-12-01 13:10:52 -0700
committerBen Beltran <ben@nsovocal.com>2010-12-01 13:10:52 -0700
commitb7be4f63119c71b07eacc9af9e6a15db63ef65ea (patch)
treee1461fc67b472eb883c39ae08d49fcd7e88d156f /views/layout.haml
parent8b832fa6c392ca95a645b01a74e61530b6d87ff3 (diff)
Version 1.0 Como quien dice
Ya todo estilizado, arregle unas cosas en cuanto a validación ... y aha.
Diffstat (limited to 'views/layout.haml')
-rw-r--r--views/layout.haml6
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