Sha256: c7f65dcbe3e338be8fe85008caba340e89f9395f1a9ee9326e1c6442302e41f7

Contents?: true

Size: 863 Bytes

Versions: 7

Compression:

Stored size: 863 Bytes

Contents

%header.intro-header{:style => "background:#333"}
  .container
    .row
      .col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1
        .site-heading
          %h1= @node.try(:title) || 'WebLog'
          %hr.small/
          %span.subheading= @node.try(:description) || 'Yet another default web log for most purposes'
/ Main Content
.container
  .row
    .col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1
      -if @node.present?
        %p= raw(@node.body)

      - @posts.each do |post|
        .post-preview
          = link_to_content_node(post) do
            %h2.post-title= post.title
            %h3.post-subtitle= post.description

          %p.post-meta
            Posted by
            = post.author.try(:user_name) || "anonymous"
            on
            = post.created_at.strftime('%d.%m.%Y')
      %hr/
      / Pager
      = paginate @posts

Version data entries

7 entries across 4 versions & 1 rubygems

Version Path
theblog-0.0.2.3 app/views/theblog/home/index.html.haml
theblog-0.0.2.3 spec/tmp/app/views/theblog/home/index.html.haml
theblog-0.0.2.2 app/views/theblog/home/index.html.haml
theblog-0.0.2.2 spec/tmp/app/views/theblog/home/index.html.haml
theblog-0.0.2.1 app/views/theblog/home/index.html.haml
theblog-0.0.2 spec/tmp/app/views/theblog/home/index.html.haml
theblog-0.0.2 app/views/theblog/home/index.html.haml