Sha256: bafd7833991137c331545ed782e5895c39fe1da4229101b6cdf55a4b47502fcb

Contents?: true

Size: 922 Bytes

Versions: 2

Compression:

Stored size: 922 Bytes

Contents

/ Page Header
/ Set your background image for this header on the line below.
-#%header.intro-header{:style => "background-image: url('img/post-bg.jpg')"}
%header.intro-header{:style => "background:#333"}
  .container
    .row
      .col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1
        .post-heading
          %h1= @node.title
          %h2.subheading= @node.description
          - if @node.type == 'Theblog::Post'
            %span.meta
              Posted by
              = @node.author.try(:user_name) || "anonymous"
              on
              = @node.created_at.strftime('%d.%m.%Y')
/ Post Content
%article
  .container
    .row
      .col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1
        %p= raw(@node.body)

        - if @node.is_a? Theblog::Category
          %h2.section-heading Posts:
          %ul
            - @node.child_nodes.each do |child|
              %li= link_to_content_node(child)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
theblog-0.0.1.1 app/views/theblog/content_nodes/show.html.haml
theblog-0.0.1 app/views/theblog/content_nodes/show.html.haml