Sha256: 7b0de0ee5bf256a096bb9b0173344c749177ecccaa4f0be3c0cc4ee6fa7951b3

Contents?: true

Size: 1.49 KB

Versions: 28

Compression:

Stored size: 1.49 KB

Contents

<% 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' %>
<div class="roundedcorners">
  <table id="blocks" class="data">
  <thead>
    <tr>
      <th colspan="2" class="first"><div class="dividers">Page Name</div></th>
      <th><div class="dividers">Path</div></th>
      <th colspan="2" class="last"><div class="dividers">Page Status</div></th>
    </tr>
  </thead>
  <% @pages.each do |page| %>
    <% status = page.archived? ? :archived : page.status %>    
    <tr>
      <td class="first"></td>
      <td class="page_name"><%=  page.name %></td>
      <td class="path"><%=  link_to page.path, page.path %></td>
      <td class="block_status"><%= status_icon(status) %> <div><%= status %></div></td>
      <td class="last"></td>
    </tr>
  <% end %>
      <tr>
        <td colspan="8" class="buffer"></td>
      </tr>
  </table>
  <div class="tl"></div>
  <div class="tr"></div>
  <div class="bl"></div>
  <div class="br"></div>
</div>

Version data entries

28 entries across 28 versions & 9 rubygems

Version Path
SFEley-browsercms-3.0.2 app/views/cms/blocks/usages.html.erb
buzzware-browsercms-3.0.2 app/views/cms/blocks/usages.html.erb
coredumplings-browsercms-3.0.0 app/views/cms/blocks/usages.html.erb
we5-browsercms-3.0.1.1 app/views/cms/blocks/usages.html.erb
webficient-browsercms-3.0.1 app/views/cms/blocks/usages.html.erb
webficient-browsercms-3.0.2 app/views/cms/blocks/usages.html.erb
webficient-browsercms-3.0.3 app/views/cms/blocks/usages.html.erb
webficient-browsercms-3.0.4 app/views/cms/blocks/usages.html.erb
browsercms-3.1.5 app/views/cms/blocks/usages.html.erb
browsercms-3.1.4 app/views/cms/blocks/usages.html.erb
browsercms-3.1.3 app/views/cms/blocks/usages.html.erb
bf4-browsercms-3.1.0 app/views/cms/blocks/usages.html.erb
drujensen-browsercms-3.2.0 app/views/cms/blocks/usages.html.erb
browsercms-3.1.2 app/views/cms/blocks/usages.html.erb
browsercms-3.1.1 app/views/cms/blocks/usages.html.erb
browsercms-3.1.0 app/views/cms/blocks/usages.html.erb
browsercms-3.0.6 app/views/cms/blocks/usages.html.erb
browsercms-3.0.5 app/views/cms/blocks/usages.html.erb
we5-browsercms-3.0.5.1 app/views/cms/blocks/usages.html.erb
we5-browsercms-3.0.5 app/views/cms/blocks/usages.html.erb