redmine_glossary/app/views/glossary_terms/_index_terms.html.erb

29 lines
613 B
Plaintext

<table class="list">
<thead>
<tr>
<th>#</th>
<th><%=l :field_name %></th>
<th><%=l :field_category %></th>
<th><%=l :field_description %></th>
</tr>
</thead>
<tbody>
<% terms.each do |term| %>
<tr>
<td class="id">
<%= term.id %>
</td>
<td class="name">
<%= link_to term.name, [@project, term] %>
</td>
<td class="roles">
<%= term.category.try!(:name) %>
</td>
<td class="description">
<%= term.description %>
</td>
</tr>
<% end %>
</tbody>
</table>