Sha256: 9fdab403c306546824374a23fc7c0161eb384979a7daf0a49762d5f1a27dd2dc
Contents?: true
Size: 1001 Bytes
Versions: 1
Compression:
Stored size: 1001 Bytes
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} %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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redditor-0.1.11 | app/views/redditor/admin/_page.haml |