Sha256: 5b3919aa8264acaf0439ce5db313eb799eb46577f97c24410f947a2646b3f4a2

Contents?: true

Size: 1.12 KB

Versions: 8

Compression:

Stored size: 1.12 KB

Contents

- page.page_blocks.order(:order).each do |block|
  %div.row.page_block{ id: block.div_id }
    - if block.name
      %h2
        = block.name
    - block.thumbnails.each do |thumb|
      %div.thumbnail.col-md-4.col-sm-6
        - if thumb.image
          = image_tag thumb.image.file
        - else
          = image_tag '/images/default.jpg'
        %h4
          = link_to raw(thumb.content), thumb.link

    - block.text_boxes.each do |box|
      %p
        = raw box.content

    - block.image_boxes.each do |box|
      %div.col-md-6{ style: 'overflow: hidden'}
        - if box.image
          = image_tag box.image.file
        - else
          = image_tag '/images/default.jpg'
        %h3
          = box.heading
        %p
          = box.content

    - block.blog_feeds.each do |feed|
      - PagesCms::Article.all.limit(feed.limit).each do |post|
        %h4
          = post.title
        %p
          = raw truncate(post.content, length: 200)
        %div
          = link_to 'read more', article_path(post)
          - post.tags.each do |tag|
            = link_to tag, articles_path(search: tag), class: 'btn btn-default btn-xs'

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pages_cms-1.0.8 app/views/pages_cms/pages/_main.html.haml
pages_cms-1.0.6 app/views/pages_cms/pages/_main.html.haml
pages_cms-1.0.5 app/views/pages_cms/pages/_main.html.haml
pages_cms-1.0.4 app/views/pages_cms/pages/_main.html.haml
pages_cms-1.0.3 app/views/pages_cms/pages/_main.html.haml
pages_cms-1.0.2 app/views/pages_cms/pages/_main.html.haml
pages_cms-1.0.1 app/views/pages_cms/pages/_main.html.haml
pages_cms-1.0.0 app/views/pages_cms/pages/_main.html.haml