Sha256: a6c2235f1122062a3697f7083bd68ac6b453c7b114b49b0c0f96ff8fb5cdacae

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

<%- model_class = @content.class -%>
<div class="page-header">
  <h1><%=t '.title', :default => "#{@content.title}" %></h1>
</div>

<dl class="dl-horizontal">
  <dt><strong><%= model_class.human_attribute_name(:_type) %>:</strong></dt>
  <dd><%= @content._type %></dd>
  <dt><strong><%= model_class.human_attribute_name(:_id) %>:</strong></dt>
  <dd><%= @content._id %></dd>
  <dt><strong><%= model_class.human_attribute_name(:slug) %>:</strong></dt>
  <dd><%= @content.slug %></dd>
</dl>

<div class="form-actions">
  <%= link_to t('.back', :default => t("helpers.links.back")),
              contents_path, :class => 'btn'  %>
  <%= link_to t('.edit', :default => t("helpers.links.edit")),
              edit_content_path(@content.ancestry), :class => 'btn' %>
  <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
              content_path(@content),
              :method => 'delete',
              :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')),
              :class => 'btn btn-danger' %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
common-content-0.0.4 app/views/contents/show.html.erb
common-content-0.0.3 app/views/contents/show.html.erb
common-content-0.0.2 app/views/contents/show.html.erb
common-content-0.0.1 app/views/contents/show.html.erb