Sha256: 302dedecc0ba2dc8e63270119f56968b5033c014efcc0bdc9a51f12b884d94cd

Contents?: true

Size: 1.25 KB

Versions: 2

Compression:

Stored size: 1.25 KB

Contents

<HTML>
<HEAD>
  <style>
    th {
      margin-top: 50px;
    }

    td {
      height: 3rem;
      margin: 20px;
      padding: 0 20px;
    }

    tr:nth-child(odd) {
      background-color: #f2f5fa;
    }

    tr:nth-child(even) {
      background-color: rgba(242, 245, 250, .5)
    }
  </style>
</HEAD>
<BODY>
  <table>
    <tr>
      <tr>
        <th> Table Name </th>
        <th> Index Name </th>
        <th style="width: 150px"> Write actions </th>
        <th style="width: 150px"> Read actions </th>
        <th style="width: 150px"> Sequence Scan </th>
        <th style="width: 150px"> Index Scan </th>
        <th style="width: 150px"> Index Size </th>
      </tr>
    </tr>
    <% @results.each do |r| %>
      <tr>
        <td> <%= r['relname'] %> </td>
        <td> <%= r['indexrelname']%></td>
        <td style="width: 100px; text-align: center"> <%= r['write_actions'] %> </td>
        <td style="width: 100px; text-align: center"> <%= r['read_actions'] %> </td>
        <td style="width: 100px; text-align: center"> <%= r['seq_scan'] %> </td>
        <td style="width: 100px; text-align: center"> <%= r['idx_scan'] %> </td>
        <td style="width: 100px; text-align: center"> <%= r['idx_size'] %> </td>
      </tr>
    <% end %>
  </table>
</BODY>
</HTML>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
index_checker-1.0.17 lib/report_template.html.erb
index_checker-1.0.16 lib/report_template.html.erb