Sha256: ecd5750b8bf94fcd9b22ed2f104719ca883d84eb7d512321dfc3485bc818ebeb
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
<h2><%= link_to @document.title, @document, :target => '_blank' %></h2> <% if @document.image %> <%= image_tag @document.image.thumb('100x100').png.url %> <% end %> <% if @document.node.leaf? %> <%= @document.body.try(:html_safe) %> <% else %> <%= to_html @document.summary %> <% end %> <p> <%= link_to 'Edit', edit_qwerty_admin_document_path(@document), :class => 'btn small' %> <%= link_to 'Live', document_path(@document), :target => '_blank', :class => 'btn small' %> <%= link_to 'Delete', qwerty_admin_document_path(@document), :method => :delete, :confirm => 'Are you sure?', :class => 'btn small danger' unless @document.get(:can_delete) == false %> </p> <% @document.node.children.each do | node | %> <div class='node'> <h3><%= node.name.pluralize.capitalize %></h3> <% unless @document.leaf? %> <div class="documents"> <%= render :partial => @document.children.by_node(node) %> </div> <% else %> <p>No <%= node.name.capitalize.pluralize %> have been added yet.</p> <% end %> <p> <%= link_to "Add #{node.name.capitalize}", new_qwerty_admin_document_path(:parent_id => @document.id, :node_id => node.id), :class => 'btn primary' %> </p> </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qwerty-0.0.1.pre | app/views/qwerty_admin/documents/show.html.erb |