initial working version of attachments.
[kwestie.git] / app / views / comments / _show.rhtml
blob3bfadebf2e481bb86b21ba91162d77f4cdf3e5b4
1 <a name="<%= comment.id -%>"></a>
2 <div class="comment">
3 <div class="permalink"><%= link_to "#", "%s#%s" % [ nice_permalink_path(comment.issue), comment.id ] %></div>
4 <div class="description"><%= auto_link(comment.description) %></div>
5 <div class="comment_meta">
6 <div class="created_at"><%= distance_of_time_in_words_to_now(comment.created_at) %> ago <span class="created_at_full">(<%= comment.created_at.to_s %>)</span></div>
7 <div class="created_by">By: <%= hCard(comment.created_by) %></div>
8 </div>
9   <% if ! comment.attachments.empty? %>
10     <div class="comment-attachments">
11     <% for attachment in comment.attachments %>
12       <p><%= attachment.filename %></p>
13     <% end %>
14     </div>
15   <% end %>
16 </div>