Sha256: 85958299f81be93204ad47b3958761ee0d46af8c21b8a2e72885c746fd5df72b

Contents?: true

Size: 981 Bytes

Versions: 7

Compression:

Stored size: 981 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', :class => 'button'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jabe-0.5.6 app/views/entries/show.html.haml
jabe-0.5.5 app/views/entries/show.html.haml
jabe-0.5.4 app/views/entries/show.html.haml
jabe-0.5.3 app/views/entries/show.html.haml
jabe-0.5.2 app/views/entries/show.html.haml
jabe-0.5.1 app/views/entries/show.html.haml
jabe-0.5.0 app/views/entries/show.html.haml