Sha256: 9d418c94c1ef79f28d67d01932d7b50a18ee8dfba7ed86358057ac5af3d301a4
Contents?: true
Size: 1.37 KB
Versions: 11
Compression:
Stored size: 1.37 KB
Contents
<%- if @managed_content.empty? -%> <p><em>No content has been added yet.</em></p> <%- else -%> <table class="standard"> <thead> <tr> <th><%= @publication.headline_label -%></th> <th>URL</th> <th>Status</th> <th>Publication Date</th> <th>Revision Date</th> <th> </th> </tr> </thead> <tbody id="content_list"> <%- @managed_content.each do |managed_content| -%> <tr class="<%= cycle('odd', 'even') -%>" id="content_<%= managed_content.id -%>"> <td><%= link_to managed_content.headline, admin_publication_managed_content_path(@publication, managed_content) -%></td> <td><%= managed_content.humanize_path -%></td> <td><%= managed_content.state.capitalize -%></td> <td><%= managed_content.publication_date ? managed_content.publication_date.to_s(:concise) : '-' -%></td> <td><%= managed_content.revision_date ? managed_content.revision_date.to_s(:concise) : '-' -%></td> <td class="crud_links"><%= crud_links_for_actions_and_paths(:destroy => admin_publication_managed_content_path(@publication, managed_content), :edit => edit_admin_publication_managed_content_path(@publication, managed_content), :show => admin_publication_managed_content_path(@publication, managed_content)) -%></td> </tr> <%- end -%> </tbody> </table> <%- end -%>
Version data entries
11 entries across 11 versions & 1 rubygems