Skip to content

Commit a031de4

Browse files
committed
Better comments on content.
* Markdown for the body. * icon on the left, content on the right.
1 parent 0caf44c commit a031de4

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

views/content/show.haml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
:markdown
44
#{@content.body}
55
- @content.comments.each do |reply|
6-
%div
7-
%a{:href => "/hackers/#{reply.author}"}
8-
%img{:src => gravatar_url_for(reply.author_email), :alt => "#{reply.author.downcase}_gravatar", :class => "comment_gravatar"}
9-
%div
10-
%p
11-
<a href="/hackers/#{reply.author}">#{reply.author}</a> says:
12-
%p
13-
= reply.body
6+
.comment{:style => "clear:both;padding-bottom:1em"}
7+
%div{:style => "float:left;padding-right:1em"}
8+
%a{:href => "/hackers/#{reply.author}"}
9+
%img{:src => gravatar_url_for(reply.author_email), :alt => "#{reply.author.downcase}_gravatar", :class => "comment_gravatar"}
10+
%div{:style => "width:500px"}
11+
%p
12+
<a href="/hackers/#{reply.author}">#{reply.author}</a> says:
13+
%p
14+
:markdown
15+
#{reply.body}
1416

1517
%h2 Add a comment
1618
%form{:action => "/content/#{@content.id}/comment", :method => "POST"}

0 commit comments

Comments
 (0)