<%- model_class = clase.constantize -%>
<% #debugger %> <% atributos_show.each do |atr| %> <% #debugger %> <% vatr = atr.to_s.gsub(/[^a-z_A-Z0-9]/, '') %> <% rutap1 = "#{clase.pluralize.underscore}/show_campo_#{vatr}" %> <% rutap1a = "admin/#{clase.pluralize.underscore}/show_campo_#{vatr}" %> <% rutap2 = "#{clase.pluralize.underscore}/show_#{vatr}" %> <% rutap2a = "admin/#{clase.pluralize.underscore}/show_#{vatr}" %> <% (ri, rm, rd)=clase.pluralize.underscore.rpartition("/") %> <% rutap3a = "#{ri}/admin/#{rd}/show_#{vatr}" %> <% if lookup_context.find_all(rutap1, [], true).any? %>
<%= model_class.human_attribute_name(atr) %>:
<%= render partial: rutap1 %>
<% elsif lookup_context.find_all(rutap1a, [], true).any? %>
<%= model_class.human_attribute_name(atr) %>:
<%= render partial: rutap1a %>
<% elsif lookup_context.find_all(rutap2, [], true).any? %>
<%= model_class.human_attribute_name(atr) %>:
<%= render partial: rutap2 %>
<% elsif lookup_context.find_all(rutap2a, [], true).any? %>
<%= model_class.human_attribute_name(atr) %>:
<%= render partial: rutap2a %>
<% elsif lookup_context.find_all(rutap3a, [], true).any? %>
<%= model_class.human_attribute_name(atr) %>:
<%= render partial: rutap3a %>
<% else %> <% p = @registro.presenta(atr) %> <% if p && p.to_s.length > 0 %>
<%= model_class.human_attribute_name(atr) %>:
<% if p.to_s.include?("\n") %>
<%= p %>
<% else %> <%= p %> <% end %>
<% end %> <% end %> <% end %>
<% if current_usuario && controller.registrar_en_bitacora %>
<% rutap4 = "#{clase.pluralize.underscore}/resumen_registros_bitacora" %> <% if lookup_context.find_all(rutap4, [], true).any? %> <%= render partial: rutap4 %> <% else %> <%= render partial: 'resumen_registros_bitacora' %> <% end %>
<% end %>
<% rutama = clase.pluralize.underscore + '/show_acciones' %> <% if lookup_context.find_all( rutama, [], true).any? %> <% # Hay un parcial %> <%= render partial: rutama %> <% else %> <%= render partial: 'show_acciones' %> <% end %>