Sha256: a0ff1b1554e91b881879deab2b3430afd9f9c8e2bb7efa4bd465ecba4592487a

Contents?: true

Size: 1.51 KB

Versions: 7

Compression:

Stored size: 1.51 KB

Contents

- page_title entry.title

#entries
  .entry.last
    .title
      %h1
        = entry.title
    .date
      = entry.published_at.try(:to_s, :long)
    .content
      ~ entry.body.html_safe

    %a{ :name => 'comments' }
    #comments
      %h2 Comments
      - if entry.comments.any?
        - entry.comments.each do |comment|
          .comment
            - if admin_signed_in?
              .delete
                = link_to image_tag('jabe/delete.png'),
                  entry_comment_path(entry, comment),
                  :confirm => 'Are you sure?',
                  :method => :delete
            - if comment.respond_to?(:gravatar_url)
              .gravatar
                = image_tag comment.gravatar_url(:default => default_gravatar_url)
            .author
              = comment.name
              %span.when
                = comment.created_at.to_s(:long)
            .body
              = comment.body.html_safe
      - else
        .comment
          .author
            None yet...

      %a{ :name => 'add-comment' }
      #new_comment
        %h2 Add a comment
        = simple_form_for [entry, comment] do |form|
          = form.input :name
          = form.input :nickname
          = form.input :email, :label => 'Email (not shown to the public)'
          = form.input :url, :label => 'Website'
          = form.input :body, :label => 'Comment',
            :hint => "Textile enabled (#{link_to 'Reference', 'http://redcloth.org/try-redcloth/', :target => '_blank'})".html_safe
          = form.submit 'Add comment'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jabe-0.7.0 app/views/jabe/entries/show.html.haml
jabe-0.6.5 app/views/jabe/entries/show.html.haml
jabe-0.6.4 app/views/jabe/entries/show.html.haml
jabe-0.6.3 app/views/jabe/entries/show.html.haml
jabe-0.6.2 app/views/jabe/entries/show.html.haml
jabe-0.6.1 app/views/jabe/entries/show.html.haml
jabe-0.6.0 app/views/jabe/entries/show.html.haml