Sha256: 5ba954a2a22a87b57ac320d200de65da04a9113ef7148d54a57477882b19c35e

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 KB

Contents

<% if  controller.registrar_en_bitacora %>
  <div class="accordion" id="acordeon-bitacora">
    <%= item_acordeon_bs(
      'acordeon-bitacora', 'bitacora', 
      "Expandir / colapsar bitácora de cambios "\
      "<!-- (#{@registro.class}) -->".html_safe,
      false, {"clase_accordion-body" => 'table-responsive',
              "estilo_accordion-body" => 'overflow-x:scroll'
      }) do %>
      <table class="table table-bordered">
        <thead>
          <tr>
            <th scope="col">Fecha</th>
            <th scope="col">Usuario</th>
            <th scope="col">IP</th>
            <th scope="col">Operación</th>
            <th scope="col">Detalle cambio</th>
          </tr>
        </thead>
        <tbody>
          <% Msip::Bitacora.where(
            modelo: clase, 
            modelo_id: @registro.id, 
            operacion: ['actualizar', 'importar', 'iniciar', 'tocar']).order('fecha DESC').each do |r| %>
            <tr>
              <th scope="row"><%= r.fecha %></th>
              <td><%= r.usuario_id ? Usuario.find(r.usuario_id).nusuario : ''  %></td>
              <td><%= r.ip %></td>
              <td><%= r.operacion %></td>
              <td><%= r.detalle %></td>
            </tr>
          <% end %>
        </tbody>
      </table>
    <% end %>

  </div> <!-- accordion-->
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
msip-2.2.0.alfa3 app/views/msip/modelos/_resumen_registros_bitacora.html.erb
msip-2.2.0.alfa2 app/views/msip/modelos/_resumen_registros_bitacora.html.erb
msip-2.2a2 app/views/msip/modelos/_resumen_registros_bitacora.html.erb