Sha256: f81e21f032be86b52d27cf6f5ccb8bf90a006c30ff3752b0d06b1a84791b0683
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 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> <%= 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> <%= content_tag :p, link_to("Duplicate", duplicate_page_path(@page.id), method: :post, class: 'btn btn-info') if @page.persisted? %></p> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smithycms-0.7.0 | app/views/smithy/pages/_page_related.html.erb |