2018-05-05 14:04:21 +02:00
|
|
|
<div class="contextual">
|
2018-05-20 15:19:01 +02:00
|
|
|
<%= link_to_if_authorized l(:button_edit),
|
|
|
|
{ controller: :glossary_terms, action: :edit, project_id: @project },
|
|
|
|
class: 'icon icon-edit' %>
|
|
|
|
<%= link_to_if_authorized l(:button_delete),
|
|
|
|
{ controller: :glossary_terms, action: :destroy,
|
|
|
|
id: @term, project_id: @project },
|
|
|
|
method: :delete, data: {confirm: l(:text_are_you_sure)}, class: 'icon icon-del' %>
|
2018-05-05 14:04:21 +02:00
|
|
|
</div>
|
|
|
|
|
2018-05-20 14:01:00 +02:00
|
|
|
<%= render partial: 'sidebar' %>
|
|
|
|
|
2018-05-04 09:00:43 +02:00
|
|
|
<h2><%=l :label_glossary_term %> #<%= @term.id %></h2>
|
2018-05-04 02:40:20 +02:00
|
|
|
|
|
|
|
<h3><%= @term.name %></h3>
|
|
|
|
|
|
|
|
<table>
|
2018-05-06 16:39:57 +02:00
|
|
|
<tr>
|
|
|
|
<th><%=l :field_category %></th>
|
|
|
|
<td><%= @term.category.try!(:name) %>
|
|
|
|
</tr>
|
2018-05-04 02:40:20 +02:00
|
|
|
<tr>
|
2018-05-04 09:00:43 +02:00
|
|
|
<th><%=l :field_description %></th>
|
2018-05-04 02:40:20 +02:00
|
|
|
<td><%= @term.description %></td>
|
|
|
|
</tr>
|
2018-05-04 09:00:43 +02:00
|
|
|
<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>
|
2018-05-04 02:40:20 +02:00
|
|
|
</table>
|