Ahora sólo se muestra el primer párrafo de la definición de cada término del glosario en la vista de tabla
This commit is contained in:
parent
4ebcf2c462
commit
d491f8c5fc
4 changed files with 8 additions and 10 deletions
|
@ -1,16 +1,14 @@
|
|||
|
||||
<% term = show_one %>
|
||||
<% if !@show_params.empty? %>
|
||||
<% if @show_params.size > 1 %>
|
||||
<table class="term_items">
|
||||
<% for prm in @show_params %>
|
||||
<tr><th><%=h label_param(prm) %>:</th><td><%= term.value(prm) %></td></tr>
|
||||
<% unless term.value(prm).blank? %><tr><th><%=h label_param(prm) %>:</th><td><%= term.value(prm) %></td></tr><% end %>
|
||||
<% end %>
|
||||
</table>
|
||||
<% end %>
|
||||
<% unless (term.description.empty?) %>
|
||||
<% if !@show_params.empty? %>
|
||||
<strong><%=l(:field_description)%></strong>:
|
||||
<% end %>
|
||||
<% if @show_params.size > 1 %><strong><%= l(:field_description) %></strong>:<% end %>
|
||||
<div class="wiki">
|
||||
<%= textilizable term, :description, :attachments => term.attachments %>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue