app/views/templates/show.html.erb
<%- model_class = @template.class-%>
<div class="page-header">
<h1><%=t '.title', :default => model_class.model_name.human.titleize %></h1>
</div>
<dl class="dl-horizontal">
<dt><strong><%= model_class.human_attribute_name(:name) %>:</strong></dt><dd><%= @template.name %></dd>
<dt><strong><%= model_class.human_attribute_name(:url) %>:</strong></dt>
<dd><%= @template.url %></dd>
<dt><strong><%= model_class.human_attribute_name(:html) %>:</strong></dt>
<dd><%= @template.html %></dd>
</dl>
<div class="form-actions">
<%= link_to t('.back', :default => t("helpers.links.back")),
templates_path, :class => 'btn' %>
<%= link_to t('.edit', :default => t("helpers.links.edit")),
edit_template_path(@template), :class => 'btn' %>
<%= link_to t('.destroy', :default => t("helpers.links.destroy")),
template_path(@template),
:method => 'delete',
:data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
:class => 'btn btn-danger' %>
</div>