Sha256: a04fe05ff0ab96f6a6101e77e9bd09ff6c96c7c4ee2a404ef63ea0b86519f0c5

Contents?: true

Size: 1.01 KB

Versions: 4

Compression:

Stored size: 1.01 KB

Contents

= f.fields_for :page, f.object.page do |p|

  - unless f.object.new_record?
    %dl#redditor.redditor{ data: {"sort-url" => url_for(redditor.sort_admin_page_path(p.object)) } }
      = render partial: "redditor/admin/content_block", collection: p.object.content_blocks, locals: { p: p, page: p.object }, layout: 'redditor/admin/wrap'

    %div.redditor__add-blocks
      %p
        = link_to t('redditor.add.text_block'), redditor.new_admin_page_text_block_path(f.object.page), remote: true, class: "redditor__add redditor__add_txt"
        = link_to t('redditor.add.video_block'), redditor.new_admin_page_video_block_path(f.object.page), remote: true, class: "redditor__add redditor__add_video"
        = link_to t('redditor.add.image_block'), redditor.new_admin_page_image_block_path(f.object.page), remote: true, class: "redditor__add redditor__add_photo"
        = link_to t('redditor.add.slider_block'), redditor.admin_page_slider_blocks_path(f.object.page), remote: true, method: 'POST', class: "redditor__add redditor__add_slider"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
redditor-0.1.22 app/views/redditor/admin/_page.haml
redditor-0.1.20 app/views/redditor/admin/_page.haml
redditor-0.1.17 app/views/redditor/admin/_page.haml
redditor-0.1.16 app/views/redditor/admin/_page.haml