Sha256: faf0df904e031ab9227417e05e1162cfe33c3d3969556f943ceb4db60c9d3a9f

Contents?: true

Size: 859 Bytes

Versions: 16

Compression:

Stored size: 859 Bytes

Contents

- if @blog.nil?
  .well
    -if current_user.nil?
      current_user is not defined. You have to be logged in with Devise in order to configure your first blog.
    - else
      Create your first blog
- else
  - if @posts.empty?
    .well.centered
      = link_to "Create Your First Post Tagged with “#{@tag}”", new_post_path, :class => "btn"
  - else
    %h3.head Posts Tagged with “#{@tag}”
    - old_date = DateTime.now + 1.day
    - @posts.each do |post|
      - @post = post
      - unless @post.nil?
        - unless old_date.day == @post.written_at.day and old_date.month == @post.written_at.month and old_date.year == @post.written_at.year
          %h3.head
            = @post.written_at.strftime("%B %d, %Y")
        = render "post"
        - old_date = @post.written_at
    = will_paginate(@posts, :renderer => BootstrapPagination::Rails)

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
almanac-0.9.2 app/views/almanac/posts/tag.html.haml
almanac-0.9.1 app/views/almanac/posts/tag.html.haml
almanac-0.9.0 app/views/almanac/posts/tag.html.haml
almanac-0.8.0 app/views/almanac/posts/tag.html.haml
almanac-0.7.4 app/views/almanac/posts/tag.html.haml
almanac-0.7.3 app/views/almanac/posts/tag.html.haml
almanac-0.7.2 app/views/almanac/posts/tag.html.haml
almanac-0.7.1 app/views/almanac/posts/tag.html.haml
almanac-0.6.1 app/views/almanac/posts/tag.html.haml
almanac-0.6.0 app/views/almanac/posts/tag.html.haml
almanac-0.5.3 app/views/almanac/posts/tag.html.haml
almanac-0.5.2 app/views/almanac/posts/tag.html.haml
almanac-0.5.1 app/views/almanac/posts/tag.html.haml
almanac-0.5.0 app/views/almanac/posts/tag.html.haml
almanac-0.4.5 app/views/almanac/posts/tag.html.haml
almanac-0.4.4 app/views/almanac/posts/tag.html.haml