Sha256: 1a2cfa915450dee3e8499f2f8d1bc2fbb01705ebca7fc64408fe996b882136cf
Contents?: true
Size: 1.69 KB
Versions: 7
Compression:
Stored size: 1.69 KB
Contents
<div style="overflow: auto;"> <h1>Vertica History for <%= @model %> <%= @id %> - Total: <%= @total_records %> records found</h1> <div class="col-xs-12 alert alert-info"> <div class="col-sm-7 col-xs-12"> <p class="padding-10"> Select New Attributes you want to see in the table for the history of the records in vertica </p> </div> <div class="col-sm-5 col-xs-12"> <a href="/rails_admin/<%= @model %>" class="btn btn-default pull-right"> Back to Model View </a> <a href="/rails_admin/<%= "#{ @model }/#{ @id }" %>" class="btn btn-default pull-right"> Back to Record </a> </div> </div> <%= render partial: 'select_attributes', locals: { action_button: 'Change Attributes'} %> <%= render partial: 'filters' %> </div> <br/> <br/> <div id="paginate"> <table class="table table-striped table-bordered table-condensed text-center"> <tr> <% @columns.each do |col| %> <th class="text-center"> <% if params[:order_by] == col+' desc' %> <%= link_to col.camelize, vertica_history_view_history_path(order_by: (col + ' asc'), columns: @columns) %> <%= '▲' %> <% else %> <%= link_to col.camelize, vertica_history_view_history_path(order_by: (col + ' desc'), columns: @columns) %> <%= '▼' if params[:order_by] == col+' asc' %> <% end %> </th> <% end %> </tr> <% @history.each do |data| %> <tr style="word-wrap: break-word;"> <% @columns.each do |col| %> <td> <%= data[col.to_sym] %> </td> <% end %> </tr> <% end %> <%= paginate @history %> </table> </div>
Version data entries
7 entries across 7 versions & 1 rubygems