]> git.r.bdr.sh - rbdr/grita/blame - views/index.haml
Quite el gemfile
[rbdr/grita] / views / index.haml
CommitLineData
5573b3c2 1%form{:method => 'post', :action => '/'}
0e0a67f4
BB
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.
5573b3c2 12 %h1 Título
0e0a67f4 13 %input.title{:type => 'text', :name => 'title'}
5573b3c2
BB
14 %br
15 %h1 Texto
0e0a67f4 16 %textarea.text{:name => 'text', :cols => '76', :rows => '20'}
5573b3c2 17 %br
0e0a67f4 18 %input.submit{:type => 'submit', :value => 'Gritalo!'}