Sha256: 115d977fdbee4edee1d6d1bfd5c4819bfe90d963439f9f90b83b707360cbff98

Contents?: true

Size: 1.45 KB

Versions: 16

Compression:

Stored size: 1.45 KB

Contents

%h1
  = @blog.name
  
#articles
  .article
    %h2
      = @article.title
      by
      = @article.author.full_name
      = asset_tag(@article.featured_image , :small_thumb)
    %p
      = @article.body.html_safe
  - unless @article.commenting_disabled?       
    #comments
      %h3
        Comments
      
      - if @comments.blank?
        %p
          There are no comments.
      - else
        - @comments.each do |comment|
          .comment
            .content
              = comment.body
            .author
              - if comment.author.blank?
                Anonymous
              - else
                = comment.author.full_name
            .time
              = time_ago_in_words(comment.created_at)
              ago
            %br
       
    #new_comment
      = form_for(:comment, :url => blog_article_comments_path(current_localization_slug , @blog.slug, @article.slug)) do |f|
        %p
          = f.label :name
          %br
          = f.text_field :author_name
        %p
          = f.label :email
          %br
          = f.text_field :author_email
        %p
          = f.label :website
          %br
          = f.text_field :author_website
        %p
          = f.label :body , "Comment"
          %br
          = f.text_area :body        
        %p
          = f.label :subscribe_to_comments
          %br
          = f.check_box :subscribe_to_comments
          
        
        = honeypot_field_tag
        
        %p
          = f.submit

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
gluttonberg-blog-1.0.0 lib/generators/gluttonberg/blog/templates/articles_show.html.haml
gluttonberg-core-2.6.4 lib/generators/gluttonberg/blog/templates/articles_show.html.haml
gluttonberg-core-2.6.3 lib/generators/gluttonberg/blog/templates/articles_show.html.haml
gluttonberg-core-2.6.2 lib/generators/gluttonberg/blog/templates/articles_show.html.haml
gluttonberg-core-2.6.1 lib/generators/gluttonberg/blog/templates/articles_show.html.haml
gluttonberg-core-2.6.0 lib/generators/gluttonberg/blog/templates/articles_show.html.haml
gluttonberg-core-2.5.9 lib/generators/gluttonberg/blog/templates/articles_show.html.haml
gluttonberg-core-2.5.8 lib/generators/gluttonberg/blog/templates/articles_show.html.haml
gluttonberg-core-2.5.7 lib/generators/gluttonberg/blog/templates/articles_show.html.haml
gluttonberg-core-2.5.6 lib/generators/gluttonberg/blog/templates/articles_show.html.haml
gluttonberg-core-2.5.5 lib/generators/gluttonberg/blog/templates/articles_show.html.haml
gluttonberg-core-2.5.4 lib/generators/gluttonberg/blog/templates/articles_show.html.haml
gluttonberg-core-2.5.3 lib/generators/gluttonberg/blog/templates/articles_show.html.haml
gluttonberg-core-2.5.2 lib/generators/gluttonberg/blog/templates/articles_show.html.haml
gluttonberg-core-2.5.1 lib/generators/gluttonberg/blog/templates/articles_show.html.haml
gluttonberg-core-2.5 lib/generators/gluttonberg/blog/templates/articles_show.html.haml