Sha256: 208527d12be08e4a3178e99769272ce3932150a1288a63901db36028e169aeec

Contents?: true

Size: 1.06 KB

Versions: 4

Compression:

Stored size: 1.06 KB

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="fa fa-check"></i>' : '<i class="fa fa-square"></i>' %> Published</dd>
    <dt>Navigation</dt>
    <dd><%= raw @page.show_in_navigation? ? '<i class="fa fa-check"></i>' : '<i class="fa fa-square"></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>


<%= link_to("View Page", @page.path, class: 'btn btn-primary btn-block') if @page.persisted? && @page.published? %>
<%= link_to("Duplicate Page", duplicate_page_path(@page.id), method: :post, class: 'btn btn-info btn-block') if @page.persisted? %>
<%= 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 btn-block') if @page.persisted? %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
smithycms-0.8.1 app/views/smithy/pages/_page_related.html.erb
smithycms-0.7.3 app/views/smithy/pages/_page_related.html.erb
smithycms-0.7.2 app/views/smithy/pages/_page_related.html.erb
smithycms-0.7.1 app/views/smithy/pages/_page_related.html.erb