]> git.r.bdr.sh - rbdr/grita/blob - views/index.haml
Muchas cosas.
[rbdr/grita] / views / index.haml
1 %form{:method => 'post', :action => '/'}
2 -unless @grito.nil?
3 -unless @grito.errors.empty?
4 #errors
5 -@grito.errors.each do |e|
6 %span= e
7 %br
8 -else
9 #success
10 Su texto ha sido guardado!
11 %a{:href=>"/#{@grito.gethash}"} De click aquí para verlo.
12 %h1 Título
13 %input.title{:type => 'text', :name => 'title'}
14 %br
15 %h1 Texto
16 %textarea.text{:name => 'text', :cols => '76', :rows => '20'}
17 %br
18 %input.submit{:type => 'submit', :value => 'Gritalo!'}