Sha256: f39bfe0838b1cabdb75b9de3258e03cad97e9f91d903489e67319075e5674645

Contents?: true

Size: 1.57 KB

Versions: 24

Compression:

Stored size: 1.57 KB

Contents

= big_list_item(:class => "comment #{"approved" if comment.approved}", :id => comment.id) do
  .item-title.comment{:class => ("draft" unless comment.approved) }
    %strong Posted by:
    = link_to comment.author, "mailto:#{comment.author_email}"
    %br/
    %strong Posted to:
    = link_to("#{comment.commentable_type}: #{comment.commentable.title}", comment.commentable, :target => "_")
    .comment-content
      - if comment.short?
        .toggle show/hide
        .short= simple_format(comment.short_comment)
        .long= simple_format(comment.content)
        .spacer
      - else
        = simple_format(comment.content)

  .item-info{:style => "width:110px;"}
    %small
      %strong= comment.created_at.strftime('%B %e, %Y')
      %br/
      = comment.created_at.strftime('%l:%M %p')
  .item-actions
    = action_link("View on Site", post_path(comment.commentable_id), :icon => "laptop") if comment.approved?

    - if comment.approved
      .item-action<
        = link_to icon_tag('thumbdown'), unapprove_forge_comment_path(comment), :class => "unapprove", :method => :put, :id => comment.id
        %br/
        %small= link_to "Unapprove", unapprove_forge_comment_path(comment), :class => "unapprove", :method => :put, :id => comment.id
    - else
      .item-action
        = link_to icon_tag('thumbup'), approve_forge_comment_path(comment), :class => "approve", :method => :put, :id => comment.id
        %br/
        %small= link_to "Approve", approve_forge_comment_path(comment), :class => "approve", :method => :put, :id => comment.id
    = delete_link(comment)
  .spacer

  .spacer

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.1.9 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.1.8 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.1.7 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.1.6 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.1.5 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.1.4 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.1.3 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.1.2 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.1.1 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.1.0 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.0.18 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.0.17 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.0.16 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.0.15 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.0.14 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.0.13 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.0.12 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.0.11 lib/forge/app/views/forge/comments/_comment.html.haml
forge-cli-0.0.10 lib/forge/app/views/forge/comments/_comment.html.haml