Sha256: b351d6494d407b1494d6c39c4242b6e9c5c9748412858f53c74f6ff92d16dd0e

Contents?: true

Size: 1.09 KB

Versions: 4

Compression:

Stored size: 1.09 KB

Contents

<div style="padding:8px; background-color:#E9EDF2; margin: 10px;">
  <strong>Warning</strong>: This is the default document template, to generate sample templates run: <code>rails g qwerty:create_document_views</code>
</div>

<h2><%= @document.title %></h2>

<% if @document.image? %>
<div><%= image_tag @document.image.thumb('200x200').png.url, :alt => @document.image_alt %></div>
<% end %>

<%= @document.body.html_safe %>

<%= @document.published_at %>

<% unless @document.children.empty? %>
  <% @document.node.children.each do | node | %>

    <h3><%= node.name.pluralize.capitalize %></h3>

    <% unless node.documents.empty? %>
      <% node.documents.each do | document | %>
        <div class='document'>
          <h4><%= link_to document.title, document_path(document) %></h4>
          <% if document.image? %>
            <div><%= image_tag document.image.thumb('200x200').png.url, :alt => document.image_alt %></div>
          <% end %>
          <%= document.summary %>
        </div>
      <% end %>
    <% else %>
      <p>No <%= node.name.pluralize %> yet.</p>
    <% end %>

  <% end %>

<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
qwerty-0.0.7.pre app/views/cms/show.html.erb
qwerty-0.0.5.pre app/views/cms/show.html.erb
qwerty-0.0.4.pre app/views/cms/show.html.erb
qwerty-0.0.3.pre app/views/cms/show.html.erb