Sha256: a4c13a28c110b27f94dc5470cb524fe62b6959b15e2b41ef71cc88f34f729324

Contents?: true

Size: 744 Bytes

Versions: 11

Compression:

Stored size: 744 Bytes

Contents

---
pageable: true
---
.container
  .row
    .col-xs-12
      %h1
        - if page_type == 'day'
          = Date.new(year, month, day).strftime('%b %e %Y')
        - elsif page_type == 'month'
          = Date.new(year, month, 1).strftime('%b %Y')
        - else
          = year


      - if paginate && num_pages > 1
        %p
          Page 
          = page_number
          of
          = num_pages

        - if prev_page
          %p= link_to 'Previous page', prev_page

      %ul
        - page_articles.each_with_index do |article, i|
          %li
            = link_to article.title, article
            %span= article.date.strftime('%b %e')

      - if paginate
        - if next_page
          %p= link_to 'Next page', next_page

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
happy_seed-0.0.21 lib/generators/happy_seed/static_blog/templates/source/calendar.html.haml
happy_seed-0.0.19 lib/generators/happy_seed/static_blog/templates/source/calendar.html.haml
happy_seed-0.0.18 lib/generators/happy_seed/static_blog/templates/source/calendar.html.haml
happy_seed-0.0.17 lib/generators/happy_seed/static_blog/templates/source/calendar.html.haml
happy_seed-0.0.16 lib/generators/happy_seed/static_blog/templates/source/calendar.html.haml
happy_seed-0.0.15 lib/generators/happy_seed/static_blog/templates/source/calendar.html.haml
happy_seed-0.0.14 lib/generators/happy_seed/static_blog/templates/source/calendar.html.haml
happy_seed-0.0.13 lib/generators/happy_seed/static_blog/templates/source/calendar.html.haml
happy_seed-0.0.12 lib/generators/happy_seed/static_blog/templates/source/calendar.html.haml
happy_seed-0.0.11 lib/generators/happy_seed/static_blog/templates/source/calendar.html.haml
happy_seed-0.0.10 lib/generators/happy_seed/static_blog/templates/source/calendar.html.haml