Sha256: ff545f255f58d7fdc940e2a5e7a6e1cad696adcf939d1b6ec5222c9d921b1c55

Contents?: true

Size: 901 Bytes

Versions: 3

Compression:

Stored size: 901 Bytes

Contents

<div class="content">
  <h1>Maintenance</h1>

  <table class="table">
    <thead>
      <tr>
        <th>Table</th>
        <th style="width: 20%;">Last Vacuum</th>
        <th style="width: 20%;">Last Analyze</th>
      </tr>
    </thead>
    <tbody>
      <% @maintenance_info.each do |table| %>
        <tr>
          <td><%= table["table"] %></td>
          <td>
            <% time = [table["last_autovacuum"], table["last_vacuum"]].compact.max %>
            <% if time %>
              <%= PgHero.time_zone.parse(time).strftime("%m/%-e %l:%M %P") %>
            <% end %>
          </td>
          <td>
            <% time = [table["last_autoanalyze"], table["last_analyze"]].compact.max %>
            <% if time %>
              <%= PgHero.time_zone.parse(time).strftime("%m/%-e %l:%M %P") %>
            <% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pghero-1.2.2 app/views/pg_hero/home/maintenance.html.erb
pghero-1.2.1 app/views/pg_hero/home/maintenance.html.erb
pghero-1.2.0 app/views/pg_hero/home/maintenance.html.erb