-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathentry.erb
More file actions
35 lines (30 loc) · 765 Bytes
/
entry.erb
File metadata and controls
35 lines (30 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<div id="entry">
<%= partial "article", :locals => {:post => @post} %>
</div>
<div id="comment_wrapper">
<% if @entry.comments.size > 0 %>
<h3>
<%= t.comments %>
</h3>
<ul id="comments">
<% @entry.comments.reverse.each do |comment| %>
<li id="comment-<%= comment.id %>" class="comment">
<div class="body">
<%= hbr comment.body %>
</div>
<div class="footer">
<span class="name">
<%= link_to_unless comment.homepage.blank?, comment.name, comment.homepage %>
</span>
<span class="date">
<%= l comment.created_at.strftime("%Y/%m/%d %H:%m:%d") %>
</span>
</div>
</li>
<% end %>
</ul>
<% end %>
<div id="comment_form">
<%= comment_form %>
</div>
</div>