<% if !@page.comments.empty? -%>

Comments

    <% @page.comments.each_with_index do |comment, position| -%>
  1. <% if allowed_to?(:delete_comment, comment) -%><% end -%>
    <%= (comment.url.blank? or comment.url !~ /^http/i) ? h(comment.name) : "#{h(comment.name)}" %> said <%= time_lost_in_words comment.page.created_at, comment.created_at %> later:
    <%= h(comment.comment) %>
  2. <% end -%>

<% end -%>