]> git.r.bdr.sh - rbdr/grita/blobdiff - views/grito.haml
Fixes QR Codes.
[rbdr/grita] / views / grito.haml
index 3408b0ac0ab865e22a47a41532c83f4d364ab287..22cfc9bbde5d7e430f5bca61631affd2cfdc48b8 100644 (file)
@@ -1,8 +1,7 @@
 %h1= @grito.title
 = @markdown.to_html
 %hr
-%h1 Comparte este texto.
-%p Puedes usar esta dirección para pasar a tus amigos por web:
-%input.url{:value => "http://grita.heroku.com/#{@grito.gethash}"}
-%p o puedes usar esta imagen para imprimirla y compartir físicamente con el mundo:
-%img#qrcode{:alt=>"Código QR", :src=>"/qr/#{@grito.gethash}.png"}
\ No newline at end of file
+#sharing
+       %input.url{:value => "http://#{request.host}/#{@grito.gethash}", :readonly=>true}
+       %br
+       %img#qrcode{:alt=>"Código QR", :src=>"/qr/#{@grito.gethash}.png"}
\ No newline at end of file