Sha256: 9527fc030a712dac9d8f00b367a038a12a537814bd141cf03ba91a3e5477629f

Contents?: true

Size: 1.25 KB

Versions: 4

Compression:

Stored size: 1.25 KB

Contents

<h2>Sitemap</h2>


<div id="documents">
  <% @documents.each do | document | %>

    <div class="document" style=''>
      <div class="row">

        <div class="span6">
          <%= link_to document.title, [:qwerty_admin, document] %>
          <% unless document.published? %>
            <span class="label">Draft</span> 
          <% end %>
          <%= to_html truncate(document.summary, :length => 100) %>

        </div>

        <div class="span4 offset2">
          <%= link_to image_tag('qwerty/admin/icons/up.png'), up_qwerty_admin_document_path(document), :class => 'btn small' unless document.first? %>
          <%= link_to image_tag('qwerty/admin/icons/down.png'), down_qwerty_admin_document_path(document), :class => 'btn small' unless document.last? %>
          <%= link_to 'Edit', edit_qwerty_admin_document_path(document), :class => 'btn small' %>
          <%= link_to 'Live', document_path(document), :target => '_blank', :class => 'btn small' %>
        </div>
      </div>

      <p>
      <% document.node.children.each do | node | %>
        <%= link_to "Add #{node.name.capitalize}", new_qwerty_admin_document_path(:parent_id => document.id, :node_id => node.id), :class => 'btn primary' %>
      <% end %>
      </p>
    </div>
  <% end %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
qwerty-0.0.7.pre app/views/qwerty_admin/documents/index.html.erb
qwerty-0.0.5.pre app/views/qwerty_admin/documents/index.html.erb
qwerty-0.0.4.pre app/views/qwerty_admin/documents/index.html.erb
qwerty-0.0.3.pre app/views/qwerty_admin/documents/index.html.erb