Sha256: e8960c0786379ff1f47793504b56235bfc67b0f961c553e24a4fde24d4ed3d19

Contents?: true

Size: 1.69 KB

Versions: 10

Compression:

Stored size: 1.69 KB

Contents

- index ||= local_assigns[:index]
- render_seo index
.asset
  %h1.title=index.title.titleize
  = 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", new_index_gallery_path(index.id), :rel=>"#overlay", :class => "overlayed" if (index.gallery.nil? && !index.owner.is_a?(Gallery))
    %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) 
- unless index.gallery.nil?
  =content_for(:post_content) 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"
    = render(:partial => "galleries/show", :object => index.gallery.indices, :as => :indices) unless index.gallery.indices.empty?
- if(request.xhr?)
  .content_for.hidden
    #content_for_post_content
      =@view_flow.get(:post_content)
    #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

10 entries across 10 versions & 1 rubygems

Version Path
sbdevcore-0.2.13 app/views/indices/_show.html.haml
sbdevcore-0.2.12 app/views/indices/_show.html.haml
sbdevcore-0.2.11 app/views/indices/_show.html.haml
sbdevcore-0.2.10 app/views/indices/_show.html.haml
sbdevcore-0.2.9 app/views/indices/_show.html.haml
sbdevcore-0.2.8 app/views/indices/_show.html.haml
sbdevcore-0.2.7 app/views/indices/_show.html.haml
sbdevcore-0.2.6 app/views/indices/_show.html.haml
sbdevcore-0.2.5 app/views/indices/_show.html.haml
sbdevcore-0.2.4 app/views/indices/_show.html.haml