Sha256: d858543c9735d97b8e8e9598d2b0cfa5ff47db6c75ddc7111aeabc6c4609e86d

Contents?: true

Size: 977 Bytes

Versions: 3

Compression:

Stored size: 977 Bytes

Contents

<% content_for :related do %>
<h4>Page Meta</h4>
<div class="well well-small">
  <dl>
    <dt>Status</dt>
    <dd><%= raw @page.published_at? ? '<i class="icon-check"></i>' : '<i class="icon-check-empty"></i>' %> Published</dd>
    <dt>Navigation</dt>
    <dd><%= raw @page.show_in_navigation? ? '<i class="icon-check"></i>' : '<i class="icon-check-empty"></i>' %> Show in Navigation</dd>
    <dt>Template</dt>
    <dd><%= @page.template.name %></dd>
    <dt>Creator</dt>
    <dd><%= "Tim Glen" %></dd>
    <% if @page.persisted? %>
    <dt>Updated</dt>
    <dd><%= time_ago_in_words @page.updated_at %> ago</dd>
    <% end %>
  </dl>
</div>

<%= content_tag :p, link_to("View Page", @page.path, class: 'btn btn-primary') if @page.persisted? && @page.published? %></p>
<%= content_tag :p, link_to("Delete Page", page_path(@page.id), method: :delete, data: { confirm: "Are you sure you want to delete this page?" }, class: 'btn btn-danger') if @page.persisted? %></p>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
smithycms-0.4.5 app/views/smithy/pages/_page_related.html.erb
smithycms-0.4.4 app/views/smithy/pages/_page_related.html.erb
smithycms-0.4.3 app/views/smithy/pages/_page_related.html.erb