Sha256: bc9242e84c8f6824639062cd9426337fc024e728c8e610566cc342e7f0c10c7c

Contents?: true

Size: 1.45 KB

Versions: 15

Compression:

Stored size: 1.45 KB

Contents

- @window_title = "Content"
- @page_title = "#{link_to "Content", admin_content_path} > #{link_to "Pages", admin_pages_path} > #{@page.name}"

= sub_nav do
  - if can? :destroy , Gluttonberg::Page
    = nav_link('Delete', delete_admin_page_path(@page) )
  = nav_link('Edit settings', edit_admin_page_path(@page))

%div.pageBlock
  %h2 Settings
  %dl
    %dt Slug
    %dd= @page.slug
    %dt Name
    %dd= @page.name
    %dt View
    %dd= @page.view || "None set"
    %dt Layout
    %dd= @page.layout || "None set"
    %dt Description
    %dd= @page.description ? @page.description[:label] : "None set"

%div.pageBlock
  %h2 Localizations
  - if @page.localizations.empty?
    %p.empty No localizations set
  - else
    %table{:cellpadding => 0, :cellspacing => 0, :summary => "Available Localizations"}
      %thead
        %tr
          %th Locale
          %th Path
          %th.controls Controls
      %tbody
        - for localization in @page.localizations
          %tr
            %td= "<strong>#{localization.locale.name}</strong> <span>(#{localization.locale.slug})</span>".html_safe
            %td= localization.public_path
            %td.controls
              = link_to("Edit", edit_admin_page_page_localization_path( :page_id => @page.id, :id => localization.id))

              = link_to("Preview", localization.public_path  , { :target => "_blank" })

%dl.meta
  %dt Created at
  %dd= @page.created_at.to_s(:long)
  %dt Updated at
  %dd= @page.updated_at.to_s(:long)

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gluttonberg-core-2.6.4 app/views/gluttonberg/admin/content/pages/show.html.haml
gluttonberg-core-2.6.3 app/views/gluttonberg/admin/content/pages/show.html.haml
gluttonberg-core-2.6.2 app/views/gluttonberg/admin/content/pages/show.html.haml
gluttonberg-core-2.6.1 app/views/gluttonberg/admin/content/pages/show.html.haml
gluttonberg-core-2.6.0 app/views/gluttonberg/admin/content/pages/show.html.haml
gluttonberg-core-2.5.9 app/views/gluttonberg/admin/content/pages/show.html.haml
gluttonberg-core-2.5.8 app/views/gluttonberg/admin/content/pages/show.html.haml
gluttonberg-core-2.5.7 app/views/gluttonberg/admin/content/pages/show.html.haml
gluttonberg-core-2.5.6 app/views/gluttonberg/admin/content/pages/show.html.haml
gluttonberg-core-2.5.5 app/views/gluttonberg/admin/content/pages/show.html.haml
gluttonberg-core-2.5.4 app/views/gluttonberg/admin/content/pages/show.html.haml
gluttonberg-core-2.5.3 app/views/gluttonberg/admin/content/pages/show.html.haml
gluttonberg-core-2.5.2 app/views/gluttonberg/admin/content/pages/show.html.haml
gluttonberg-core-2.5.1 app/views/gluttonberg/admin/content/pages/show.html.haml
gluttonberg-core-2.5 app/views/gluttonberg/admin/content/pages/show.html.haml