You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_attributes.html.erb 823B

12345678910111213141516171819202122232425262728
  1. <div class="attributes">
  2. <div class="author">
  3. <% if Banter::Config.use_gravatar %>
  4. <% sum = Digest::MD5.hexdigest((comment.author_email || 'fakeemail').downcase.gsub(/\s+/, '')) %>
  5. <img class="avatar" src="http://www.gravatar.com/avatar/<%= sum %>.jpg?r=g&s=48"/>
  6. <% end %>
  7. <% if !comment.author_url.blank? %>
  8. <p><%= link_to(h(comment.author_name), comment.author_url) %></p>
  9. <% else %>
  10. <p><%= h(comment.author_name) %></p>
  11. <% end %>
  12. </div>
  13. <div class="date">
  14. <%= h(comment.created_at.to_s(Banter::Config.date_format)) %>
  15. </div>
  16. <div class="reply-link">
  17. <%= comments_reply_link('Reply', parent, (comment.reply_id ? comment.reply_id : comment)) %>
  18. </div>
  19. </div>
  20. <div class="body">
  21. <%= sanitize(comment.content_cache) %>
  22. </div>
  23. <br class="clear"/>