Sha256: dfaba14e8fed01b9abcb9411a4f9292e1c9ab889f757da4df6c82541910cf36b

Contents?: true

Size: 1.05 KB

Versions: 15

Compression:

Stored size: 1.05 KB

Contents

- content_for :main do

  %h1.page_icon Page '#{@page.name}' Contents

  .div(style="margin-bottom: 20px;")
    = icon_to "Page Info", @page.link('info')

  Show:
  = icon_to "Current", "/page/#{@page.id}/contents?mode=current" unless params[:mode] == 'current'
  = icon_to "Draft", "/page/#{@page.id}/contents?mode=draft" unless params[:mode] == 'draft'
  = icon_to "Autosaved", "/page/#{@page.id}/contents?mode=auto" unless params[:mode] == 'auto'
  = icon_to "Old", "/page/#{@page.id}/contents?mode=old" unless params[:mode] == 'old'

  
  - if params[:mode]=='current'
    %h3 Showing: Current
    = render :partial=>"contents", :locals=>{:contents=>@page.current_content}
  
  - if params[:mode]=='draft'
    %h3 Showing: Draft
    = render :partial=>"contents", :locals=>{:contents=>@page.draft_content}

  - if params[:mode]=='auto'
    %h3 Showing: Autosave
    = render :partial=>"contents", :locals=>{:contents=>@page.autosave_content}
  
  - if params[:mode]=='old'
    %h3 Showing: Old
    = render :partial=>"contents", :locals=>{:contents=>@page.old_content}



Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kit_cms-2.3.22 app/views/pages/contents.html.haml
kit_cms-2.3.20 app/views/pages/contents.html.haml
kit_cms-2.3.19 app/views/pages/contents.html.haml
kit_cms-2.3.18 app/views/pages/contents.html.haml
kit_cms-2.3.17 app/views/pages/contents.html.haml
kit_cms-2.3.16 app/views/pages/contents.html.haml
kit_cms-2.3.15 app/views/pages/contents.html.haml
kit_cms-2.3.14 app/views/pages/contents.html.haml
kit_cms-2.3.13 app/views/pages/contents.html.haml
kit_cms-2.3.11 app/views/pages/contents.html.haml
kit_cms-2.3.10 app/views/pages/contents.html.haml
kit_cms-2.3.9 app/views/pages/contents.html.haml
kit_cms-2.3.8 app/views/pages/contents.html.haml
kit_cms-2.3.7 app/views/pages/contents.html.haml
kit_cms-2.3.6 app/views/pages/contents.html.haml