<% page_title "Content Library / View Usages" %> <% @toolbar_title = "Pages Using #{content_type.display_name} '#{ @block.name }'" %> <% content_for :html_head do %> <%= stylesheet_link_tag("cms/content_library") %> <% javascript_tag do %> jQuery(function($) { $('#functions .button').addClass('disabled').attr('href','#'); $('#view_button').removeClass('disabled') .attr('href', '<%= cms_connectable_path(@block)%>') $('#edit_button').removeClass('disabled') .attr('href', '<%= edit_cms_connectable_path(@block)%>') }) <% end %> <% end %> <%= render :partial => 'cms/blocks/toolbar' %>
<% @pages.each do |page| %> <% status = page.archived? ? :archived : page.status %> <% end %>
Page Name
Path
Page Status
<%= page.name %> <%= link_to page.path, page.path %> <%= status_icon(status) %>
<%= status %>