Sha256: 0c31f841f0302b867da04082e2ca94c5fd6a783e141b1fc9f4e569fd007791ce

Contents?: true

Size: 1.8 KB

Versions: 7

Compression:

Stored size: 1.8 KB

Contents

- index ||= local_assigns[:index]
- render_seo index
.asset{:id => index.name}
  %h1.title=index.title.titleize
  - if admin_signed_in?
    %p.asset-admin
      = link_to "Edit Page", edit_index_path(index.id), :rel=>"#overlay", :class => "overlayed"
      = link_to("Remove Page", index, :confirm => 'Are you sure?', :method => :delete) if index.owner.is_a?(Gallery)
  = render :partial => 'shared/asset_show', :collection => index.assets, :as => :asset
  - if admin_signed_in?
    .asset
      %p.asset-admin
        = link_to "Add Text", new_index_text_path(index.id), :rel=>"#overlay", :class => "overlayed"
        = link_to "Add Photo", new_index_photo_path(index.id), :rel=>"#overlay", :class => "overlayed"
        = link_to "Add Video", new_index_video_path(index.id), :rel=>"#overlay", :class => "overlayed"
        = link_to "Add Downloadable File", new_index_downloadable_path(index.id), :rel=>"#overlay", :class => "overlayed"
        = link_to "Add Gallery", index_gallery_path(index.id), :method => :post if (index.gallery.nil? && !index.owner.is_a?(Gallery))
- unless index.gallery.nil?
  =content_for(:gallery) do
    - if admin_signed_in?
      .asset
        %p.asset-admin
          = link_to "Add Gallery Page", new_gallery_index_path(index.gallery.id), :rel=>"#overlay", :class => "overlayed"
          = link_to "Remove Gallery", index_gallery_path(index), :method => :delete, :confirm => "Are you sure?"
    = render(:partial => "galleries/show", :object => index.gallery.indices, :as => :indices) unless index.gallery.indices.empty?
- if(request.xhr?)
  .content_for.hidden
    #content_for_gallery
      =@view_flow.get(:gallery)
    #content_for_title
      =@view_flow.get(:title)
    #content_for_keywords
      =@view_flow.get(:keywords)
    #content_for_page_description
      =@view_flow.get(:page_description)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sbdevcore-0.3.10 app/views/indices/_show.html.haml
sbdevcore-0.3.9 app/views/indices/_show.html.haml
sbdevcore-0.3.8 app/views/indices/_show.html.haml
sbdevcore-0.3.7 app/views/indices/_show.html.haml
sbdevcore-0.3.6 app/views/indices/_show.html.haml
sbdevcore-0.3.5 app/views/indices/_show.html.haml
sbdevcore-0.3.4 app/views/indices/_show.html.haml