Sha256: d582d95b687755ed30efa42c9a2d6709897b9db4f588b3f3f2e374a9482394d4
Contents?: true
Size: 1.19 KB
Versions: 17
Compression:
Stored size: 1.19 KB
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] %> <% if table[:schema] != "public" %> <span class="text-muted"><%= table[:schema] %></span> <% end %> </td> <td> <% time = [table[:last_autovacuum], table[:last_vacuum]].compact.max %> <% if time %> <%= time.in_time_zone(@time_zone).strftime("%-m/%-e %l:%M %P") %> <% else %> <span class="text-muted">Unknown</span> <% end %> </td> <td> <% time = [table[:last_autoanalyze], table[:last_analyze]].compact.max %> <% if time %> <%= time.in_time_zone(@time_zone).strftime("%-m/%-e %l:%M %P") %> <% else %> <span class="text-muted">Unknown</span> <% end %> </td> </tr> <% end %> </tbody> </table> </div>
Version data entries
17 entries across 17 versions & 1 rubygems