2018-06-21 20:22:25 +02:00
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= stylesheet_link_tag 'glossary', plugin: 'redmine_glossary' %>
|
|
|
|
<% end %>
|
|
|
|
|
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>
|
|
|
|
|
2018-06-21 20:22:25 +02:00
|
|
|
<table class="term">
|
2018-05-24 01:26:17 +02:00
|
|
|
<tr>
|
2018-06-21 20:22:25 +02:00
|
|
|
<th><%=l :field_name_en %>:</th>
|
2018-05-24 01:26:17 +02:00
|
|
|
<td><%= @term.name_en %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-06-21 20:22:25 +02:00
|
|
|
<th><%=l :field_rubi %>:</th>
|
2018-05-24 01:26:17 +02:00
|
|
|
<td><%= @term.rubi %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-06-21 20:22:25 +02:00
|
|
|
<th><%=l :field_abbr_whole %>:</th>
|
2018-05-24 01:26:17 +02:00
|
|
|
<td><%= @term.abbr_whole %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-06-21 20:22:25 +02:00
|
|
|
<th><%=l :field_datatype %>:</th>
|
2018-05-24 01:26:17 +02:00
|
|
|
<td><%= @term.datatype %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-06-21 20:22:25 +02:00
|
|
|
<th><%=l :field_codename %>:</th>
|
2018-05-24 01:26:17 +02:00
|
|
|
<td><%= @term.codename %></td>
|
|
|
|
</tr>
|
2018-05-06 16:39:57 +02:00
|
|
|
<tr>
|
2018-06-21 20:22:25 +02:00
|
|
|
<th><%=l :field_category %>:</th>
|
2018-05-06 16:39:57 +02:00
|
|
|
<td><%= @term.category.try!(:name) %>
|
|
|
|
</tr>
|
2018-05-04 02:40:20 +02:00
|
|
|
<tr>
|
2018-06-21 20:22:25 +02:00
|
|
|
<th><%=l :field_description %>:</th>
|
2018-06-15 16:21:40 +02:00
|
|
|
<td><div class="wiki"><%= textilizable @term, :description %></div></td>
|
2018-05-04 02:40:20 +02:00
|
|
|
</tr>
|
2018-05-04 09:00:43 +02:00
|
|
|
<tr>
|
2018-06-21 20:22:25 +02:00
|
|
|
<th><%=l :field_created_on %>:</th>
|
2018-05-04 09:00:43 +02:00
|
|
|
<td><%= format_time(@term.created_at) %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-06-21 20:22:25 +02:00
|
|
|
<th><%=l :field_updated_on %>:</th>
|
2018-05-04 09:00:43 +02:00
|
|
|
<td><%= format_time(@term.updated_at) %></td>
|
|
|
|
</tr>
|
2018-05-04 02:40:20 +02:00
|
|
|
</table>
|
2018-06-08 13:57:51 +02:00
|
|
|
|
|
|
|
<%= render partial: 'attachments/links',
|
|
|
|
locals: {attachments: @term.attachments,
|
2018-06-10 04:24:58 +02:00
|
|
|
options: {deletable: User.current.allowed_to?(:manage_glossary, @project)}
|
2018-06-08 13:57:51 +02:00
|
|
|
}%>
|