Sha256: 8bd1d43b38f2eb0b3ae3792cb7dfa3b858e248dda7b1152d040cb970a93d739b

Contents?: true

Size: 1.06 KB

Versions: 11

Compression:

Stored size: 1.06 KB

Contents

<%- set_title 'Managed Content Publications' -%>

<%- if @publications.empty? -%>
  <div class="form_container">
    <p><em>No publications have been created yet.</em></p>
  </div>
<%- else -%>
  <table class="standard">
    <tr>
      <th>Name</th>
      <th>URL</th>
      <th>Description</th>
      <th>Content Type</th>
      <th>Published Content</th>
      <th> </th>
    </tr>

  <%- @publications.each do |publication| -%>
    <tr class="<%= cycle('odd', 'even') -%>">
      <td><%= link_to publication.name, admin_publication_path(publication) -%></td>
      <td><%= publication.humanize_path -%></td>
      <td><%= publication.description.to_s.truncate(50) -%></td>
      <td><%= publication.content_type -%></td>
      <td><%= publication.managed_contents.count -%></td>
      <td class="crud_links"><%= admin_crud_links(publication, [:show, :edit, :destroy]) -%></td>
    </tr>
  <%- end -%>
  </table>
<%- end -%>

<div class="link_block attached table">
  <%= link_to 'New Publication', new_admin_publication_path, :class => 'link_button', :text => 'New Section'  -%>
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
editorial_logic-1.3.3 app/views/admin/publications/index.html.erb
editorial_logic-1.3.2 app/views/admin/publications/index.html.erb
editorial_logic-1.3.1 app/views/admin/publications/index.html.erb
editorial_logic-1.3.0 app/views/admin/publications/index.html.erb
editorial_logic-1.1.6 app/views/admin/publications/index.html.erb
editorial_logic-1.1.5 app/views/admin/publications/index.html.erb
editorial_logic-1.1.4 app/views/admin/publications/index.html.erb
editorial_logic-1.1.3 app/views/admin/publications/index.html.erb
editorial_logic-1.1.2 app/views/admin/publications/index.html.erb
editorial_logic-1.1.1 app/views/admin/publications/index.html.erb
editorial_logic-1.1.0 app/views/admin/publications/index.html.erb