Sha256: 9d289f20c65d604fb6da6058a5fceaade092a00b0b99c80190df66a12988aa8b

Contents?: true

Size: 873 Bytes

Versions: 4

Compression:

Stored size: 873 Bytes

Contents

.comment
  .commentable
    = comment.commentable_type
    →
    = link_to comment.commentable_title, comment.commentable_url
    = comment.try(:commentable_state) ? "(#{comment.try(:commentable_state)})" : nil
  .title
    %label from:
    = comment.title.blank? ? t('the_comments.guest_name') : comment.title
  .contacts
    %label contacts:
    = comment.contacts
  .content
    = comment.content
  .params
    %b tolerance time:
    = comment.tolerance_time || 'none'
    \|
    %b ip:
    = link_to(comment.ip, ip_black_lists_url(ip: comment.ip)) || 'none'
    \|
    %b UA:
    = link_to(comment.user_agent, user_agent_black_lists_url(agent: comment.user_agent)) || 'none'
    \|
    %b referer:
    = comment.referer || 'none'

  .controls
    = link_to :Edit, '#', class: :edit
    = render partial: 'the_comments/manage_controls', locals: { comment: comment }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
the_comments-1.1.0 app/views/the_comments/_comment_body.html.haml
the_comments-1.0.0 app/views/the_comments/_comment_body.html.haml
the_comments-0.9.9 app/views/the_comments/_comment_body.html.haml
the_comments-0.9.0 app/views/the_comments/_comment_body.html.haml