Corrección de errores y mejoras en la visualización del glosario

This commit is contained in:
Manuel Cillero 2019-01-30 01:01:36 +01:00
parent 693eb3ee50
commit c6568888b1
9 changed files with 25 additions and 19 deletions

View file

@ -5,6 +5,5 @@
<%= render(:partial => "glossary/show_one", :object => term) %>
</div>
<br />
<% end %>
<br />

View file

@ -1,12 +1,16 @@
<% 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>

View file

@ -15,16 +15,16 @@
<%= link_to_if_authorized(l(:label_move_all_terms), {:controller => 'glossary', :action => 'move_all', :project_id => @project}, :class => 'icon icon-move') %>
<br />
<% end %>
<%= link_to(l(:label_glossary_import_csv), {:controller => 'glossary', :action => 'import_csv', :project_id => @project}) %>
<%= link_to(l(:label_glossary_import_csv), {:controller => 'glossary', :action => 'import_csv', :project_id => @project}, :id => 'glossary_import_csv') %>
<br />
<% end %>
<% if User.current.allowed_to?(:manage_term_categories, @project, :global => true) %>
<h3><%= l(:label_term_category) %></h3>
<%= link_to l(:label_term_category_new), {:controller => 'glossary', :action => 'add_term_category', :project_id => @project}, :class => 'icon icon-add' %>
<%= link_to(l(:label_term_category_new), {:controller => 'glossary', :action => 'add_term_category', :project_id => @project}, :class => 'icon icon-add') %>
<br />
<%= link_to l(:label_manage_term_category), { :controller => 'term_categories', :action => 'index', :project_id => @project } %>
<%= link_to(l(:label_manage_term_category), { :controller => 'term_categories', :action => 'index', :project_id => @project }, :id => 'glossary_term_categories') %>
<br />
<% end %>

View file

@ -9,7 +9,7 @@ if params[:search_index_ch]
subtitlle = "- #{params[:search_index_ch]} -"
end %>
<h1><%= t('glossary_title') %> <%= subtitlle %> </h1>
<h2><%= t('glossary_title') %> <%= subtitlle %> </h2>
<br />
<% if User.current.allowed_to?(:view_terms, @project, :global => true) %>
@ -22,7 +22,7 @@ end %>
<% if @glossary_style.grouping? %>
<% list_number = 1 %>
<% @terms.each do |gterms| %>
<h2><%= "#{list_number}. #{gterms.name}" %></h2>
<h3><%= "#{list_number}. #{gterms.name}" %></h3>
<% list_number += 1 %>
<%= render(:partial => tempname, :object => gterms.ary) %>
<% end %>