30 lines
1.4 KiB
Plaintext
30 lines
1.4 KiB
Plaintext
<%- model_class = Article -%>
|
|
<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(:title) %>:</strong></dt>
|
|
<dd><%= @article.title %></dd>
|
|
<dt><strong><%= model_class.human_attribute_name(:content) %>:</strong></dt>
|
|
<dd><%= @article.content %></dd>
|
|
<dt><strong><%= model_class.human_attribute_name(:rate) %>:</strong></dt>
|
|
<dd><%= @article.rate %></dd>
|
|
<dt><strong><%= model_class.human_attribute_name(:active) %>:</strong></dt>
|
|
<dd><%= @article.active %></dd>
|
|
<dt><strong><%= model_class.human_attribute_name(:created_by) %>:</strong></dt>
|
|
<dd><%= @article.created_by %></dd>
|
|
<dt><strong><%= model_class.human_attribute_name(:updated_by) %>:</strong></dt>
|
|
<dd><%= @article.updated_by %></dd>
|
|
</dl>
|
|
|
|
<%= link_to t('.back', :default => t("helpers.links.back")),
|
|
articles_path, :class => 'btn btn-default' %>
|
|
<%= link_to t('.edit', :default => t("helpers.links.edit")),
|
|
edit_article_path(@article), :class => 'btn btn-default' %>
|
|
<%= link_to t('.destroy', :default => t("helpers.links.destroy")),
|
|
article_path(@article),
|
|
:method => 'delete',
|
|
:data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
|
|
:class => 'btn btn-danger' %>
|