Sha256: af42bbcb4fbc8fdcfb2dd66651ab75d1286c7de5ace9f8748049f23211e323ac

Contents?: true

Size: 646 Bytes

Versions: 15

Compression:

Stored size: 646 Bytes

Contents

%h1
  = @page.title

%h5 Line
%p
  = @page.content(:line)
%h5 Content
= @page.content(:text).try(:html_safe)

%h5 Photo
%p
  = image_tag @page.content(:photo).try(:file_url)

%h5 Photo collection
- if @page.content(:photo_collection).try(:photos)
  %ul
    - @page.content(:photo_collection).photos.each do |photo|
      %li
        = image_tag photo.file_url

%h5 Structure
- if @page.content(:structure).try(:structure_items)
  %ul
    - @page.content(:structure).structure_items.each do |item|
      %li
        %h6 Title
        %p
          = item.content(:title)
        %h6 Description
        = item.content(:description).try(:html_safe)

Version data entries

15 entries across 11 versions & 1 rubygems

Version Path
spina-0.12.0 lib/generators/spina/templates/app/views/demo/pages/demo.html.haml
spina-0.11.1 lib/generators/spina/templates/app/views/demo/pages/demo.html.haml
spina-0.11.0 lib/generators/spina/templates/app/views/demo/pages/demo.html.haml
spina-0.10.0 lib/generators/spina/templates/app/views/demo/pages/demo.html.haml
spina-0.9.0 lib/generators/spina/templates/app/views/demo/pages/demo.html.haml
spina-0.8.3 test/dummy/app/views/demo/pages/demo.html.haml
spina-0.8.3 lib/generators/spina/templates/app/views/demo/pages/demo.html.haml
spina-0.8.2 lib/generators/spina/templates/app/views/demo/pages/demo.html.haml
spina-0.8.2 test/dummy/app/views/demo/pages/demo.html.haml
spina-0.8.1 lib/generators/spina/templates/app/views/demo/pages/demo.html.haml
spina-0.8.1 test/dummy/app/views/demo/pages/demo.html.haml
spina-0.8.0 test/dummy/app/views/demo/pages/demo.html.haml
spina-0.8.0 lib/generators/spina/templates/app/views/demo/pages/demo.html.haml
spina-0.7.3 lib/generators/spina/templates/app/views/default/pages/demo.html.haml
spina-0.7.2 lib/generators/spina/templates/app/views/default/pages/demo.html.haml