app/views/pages/show.html.erb
<%- model_class = Page -%>
<%= markdown(@page.content) %>
<% if @superadmin %>
<div class="form-actions">
<%= link_to 'Pages', pages_path, :class => 'btn btn-default' %>
<%= link_to t('.edit', :default => t("helpers.links.edit")),
edit_page_path(@page), :class => 'btn btn-default' %>
<%= link_to t('.destroy', :default => t("helpers.links.destroy")),
page_path(@page),
:method => 'delete',
:data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
:class => 'btn btn-danger' %>
</div>
<% end %>