Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

comments form

  • Loading branch information...
commit 27ae388bde9e1a548eef745bac81fc72bcda1247 1 parent 85dd4c8
@barthezslavik authored
Showing with 10 additions and 3 deletions.
  1. +10 −3 app/views/samples/show.html.haml
View
13 app/views/samples/show.html.haml
@@ -18,12 +18,19 @@
=link_to image_tag(@sample.screenshot.url :large), @sample.screenshot.url
%br
- %br
-if @sample.demo?
+ %br
=link_to "Demo", "/#{@sample.demo}", :class => "link"
- %br
- %br
+ %br
+ %br
+
+ - @sample.comments.each do |s|
+ = s.created_at.to_s(:short)
+ %br
+ = s.content
+ %br
+ %br
= simple_form_for([@sample, @sample.comments.build]) do |f|
= f.input :content, :as => :text, :label => false
Please sign in to comment.
Something went wrong with that request. Please try again.