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
|
@ -17,7 +17,7 @@
|
||||||
<td><%=h term.value(prm) %></td>
|
<td><%=h term.value(prm) %></td>
|
||||||
<% end %>
|
<% end %>
|
||||||
<!--td><%=h truncate(term.description, :length=>50) %></td-->
|
<!--td><%=h truncate(term.description, :length=>50) %></td-->
|
||||||
<td><%=textilizable term.description %></td>
|
<td><% @paragraphs = Nokogiri::HTML.parse(term.description).css('p') %><%=textilizable @paragraphs.first.inner_html + (@paragraphs.size > 1 ? '<p>…</p>' : '') %></td>
|
||||||
<td align="right" width="40px">
|
<td align="right" width="40px">
|
||||||
<% if term.project_id == @project.id %>
|
<% if term.project_id == @project.id %>
|
||||||
<%= link_to_if_authorized(image_tag('edit.png'), {:action => 'edit', :project_id => @project, :id => term}, :title => l(:button_edit)) %>
|
<%= link_to_if_authorized(image_tag('edit.png'), {:action => 'edit', :project_id => @project, :id => term}, :title => l(:button_edit)) %>
|
||||||
|
|
|
@ -1,16 +1,14 @@
|
||||||
|
|
||||||
<% term = show_one %>
|
<% term = show_one %>
|
||||||
<% if !@show_params.empty? %>
|
<% if @show_params.size > 1 %>
|
||||||
<table class="term_items">
|
<table class="term_items">
|
||||||
<% for prm in @show_params %>
|
<% 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 %>
|
<% end %>
|
||||||
</table>
|
</table>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% unless (term.description.empty?) %>
|
<% unless (term.description.empty?) %>
|
||||||
<% if !@show_params.empty? %>
|
<% if @show_params.size > 1 %><strong><%= l(:field_description) %></strong>:<% end %>
|
||||||
<strong><%=l(:field_description)%></strong>:
|
|
||||||
<% end %>
|
|
||||||
<div class="wiki">
|
<div class="wiki">
|
||||||
<%= textilizable term, :description, :attachments => term.attachments %>
|
<%= textilizable term, :description, :attachments => term.attachments %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,7 +9,7 @@ es:
|
||||||
label:
|
label:
|
||||||
id: No.
|
id: No.
|
||||||
name: Término
|
name: Término
|
||||||
name_en: Inglés
|
name_en: En inglés
|
||||||
category: Categoría
|
category: Categoría
|
||||||
datatype: "Tipo de dato en código"
|
datatype: "Tipo de dato en código"
|
||||||
codename: "Abreviatura en código"
|
codename: "Abreviatura en código"
|
||||||
|
|
|
@ -1502,10 +1502,10 @@ table.term_items tr th {
|
||||||
#glossary_style_project_scope {
|
#glossary_style_project_scope {
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
}
|
}
|
||||||
.edit_glossary_style #grouping {
|
form[class$="glossary_style"] #grouping {
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
.edit_glossary_style #grouping label {
|
form[class$="glossary_style"] #grouping label {
|
||||||
display: block;
|
display: block;
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue