Sha256: aabc15546fe4ca37ad070b6be0429670dc34f5f84f1009e58b3fc963de10381c

Contents?: true

Size: 1.12 KB

Versions: 9

Compression:

Stored size: 1.12 KB

Contents

<h2>Sections</h2>

<table>
  <tr>    
    <th>Title</th>
    <th></th>
    <th></th>
  </tr>
  <% @documents.each do |document| %>
    <tr>
      <td>
        <%= document.title %><br />
        <small><%= truncate(document.summary, :length => 30) %></small>
      </td>
      <td>
        <a href="<%= admin_document_path(document.id) %>" class="button">Open</a>
      </td>
      <td><a href="<%= edit_admin_document_path(document.id) %>" class="button">Edit</a></td>
      <td><a href="<%= new_admin_document_path + '?parent_id=' + document.id.to_s %>" class="button">Add</a></td>
      <td>
        <%= link_to 'Up', up_admin_document_path(document.id), :class => 'button' unless document.first?  %>
        <%= link_to 'Down', down_admin_document_path(document.id), :class => 'button' unless document.last?  %>
      </td>
      <td><%= link_to 'Delete', admin_document_path(document.id), :method => 'delete', :class => 'button' %></td>
      <td><a href="<%= document_path(document) %>" class="button">Live</a></td>
    </tr>
  <% end %>
</table>

<p><%= link_to 'New Page', new_admin_document_path + '?label_path=page', :class => 'button' %>


Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
qcms-2.1.0 app/views/admin/documents/index.html.erb
qcms-2.0.0 app/views/admin/documents/index.html.erb
qcms-1.3.10 app/views/admin/documents/index.html.erb
qcms-1.3.9 app/views/admin/documents/index.html.erb
qcms-1.3.8 app/views/admin/documents/index.html.erb
qcms-1.3.7 app/views/admin/documents/index.html.erb
qcms-1.3.6 app/views/admin/documents/index.html.erb
qcms-1.3.5 app/views/admin/documents/index.html.erb
qcms-1.3.3 app/views/admin/documents/index.html.erb