<% page_title "Content Library / View #{content_type.display_name}" %> <% @toolbar_title = "View #{content_type.display_name} '#{ @block.name }'" %> <% content_for :html_head do %> <%= stylesheet_link_tag('cms/form_layout') %> <%= stylesheet_link_tag('cms/block') %> <%= stylesheet_link_tag('cms/content_library') %> <% end %> <%= content_for :functions, render(:partial => 'cms/blocks/toolbar') %>
<% if @block.class.publishable? %> <% block_published_status = (@block.live? ? 'published' : 'draft') %>
Status:
<%= status_icon(block_published_status) %>
<%= block_published_status %>
<% end %> <% if @block.class.connectable? %>
Used on:
<%= link_to_usages(@block) %> <%= "page".pluralize(@block.connected_pages.count)%>
<% end -%> <% if @block.respond_to?(:draft_version?) && !@block.draft_version? %>
Version:
v. <%= @block.version %> ( <%= link_to "Current", [:cms, @block] %> )
<% end -%> <% if @block.class.renderable? %>
Block Contents:
<%= render_connectable(@block) %>
<% end %>