Sha256: e03bd58ae6023bc391838267f30e3f9973a028c60ae05e34d04d4f0a07808fe1

Contents?: true

Size: 961 Bytes

Versions: 2

Compression:

Stored size: 961 Bytes

Contents

#entries.grid_8
  .entry.last
    .title
      = entry.title
    .date
      = entry.published_at.to_s(:long)
    .content
      ~ entry.body.html_safe

    %a{ :name => 'comments' }
    #comments
      %h2 Comments
      - if entry.comments.any?
        - entry.comments.each do |comment|
          .comment
            .author
              = comment.name
              %span.when
                = comment.created_at.to_s(:long)
            .body
              = comment.body
      - else
        .comment
          .author
            None yet...

      %a{ :name => 'add-comment' }
      #new_comment
        %h2 Add a comment
        = semantic_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'
          = form.submit 'Add comment'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jabe-0.5.8 app/views/entries/show.html.haml
jabe-0.5.7 app/views/entries/show.html.haml