suitepro/plugins/redmine_glossary/app/views/glossary/_show_one.html.erb

23 lines
565 B
Text
Executable file

<% term = show_one %>
<% if !@show_params.empty? %>
<table class="term_items">
<% for prm in @show_params %>
<tr><th><%=h label_param(prm) %>:</th><td><%= term.value(prm) %></td></tr>
<% end %>
</table>
<% end %>
<% unless (term.description.empty?) %>
<% if !@show_params.empty? %>
<strong><%=l(:field_description)%></strong>:
<% end %>
<div class="wiki">
<%= textilizable term, :description, :attachments => term.attachments %>
</div>
<% if term.attachments.any? %>
<%= (@is_index) ? "" : '<hr />' %>
<%= link_to_attachments term %>
<% end %>
<% end %>