redmine_glossary/app/views/glossary_terms/show.html.erb
2020-01-02 19:39:20 +09:00

31 lines
800 B
Plaintext

<div class="contextual">
<%= link_to l(:button_edit), edit_project_glossary_term_path, class: 'icon icon-edit' %>
<%= link_to l(:button_delete), project_glossary_term_path, method: :delete,
data: {confirm: l(:text_are_you_sure)}, class: 'icon icon-del' %>
</div>
<%= render partial: 'sidebar' %>
<h2><%=l :label_glossary_term %> #<%= @term.id %></h2>
<h3><%= @term.name %></h3>
<table>
<tr>
<th><%=l :field_category %></th>
<td><%= @term.category.try!(:name) %>
</tr>
<tr>
<th><%=l :field_description %></th>
<td><%= @term.description %></td>
</tr>
<tr>
<th><%=l :field_created_on %></th>
<td><%= format_time(@term.created_at) %></td>
</tr>
<tr>
<th><%=l :field_updated_on %></th>
<td><%= format_time(@term.updated_at) %></td>
</tr>
</table>