43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
<h3><%= @monitor.name %> - <%= t("health_check_monitor.logs") %></h3>
|
|
|
|
<p>
|
|
<%= link_to t("health_check_monitor.manual_check"), manual_check_admin_health_check_monitor_path(@monitor), :method => :post, :class => "btn btn-primary" %>
|
|
<%= link_to t("health_check_monitor.clean_logs"), clean_logs_admin_health_check_monitor_path(@monitor), :method => :post, :class => "btn", :data => { :confirm => t(:sure?) } %>
|
|
<%= link_to t(:back), admin_health_check_monitors_path, :class => "btn" %>
|
|
</p>
|
|
|
|
<% if @monitor.check_now %>
|
|
<div class="alert alert-info"><%= t("health_check_monitor.pending_notice") %></div>
|
|
<% else %>
|
|
<p class="muted"><%= t("health_check_monitor.manual_check_notice") %></p>
|
|
<% end %>
|
|
|
|
<table class="table main-list">
|
|
<thead>
|
|
<tr>
|
|
<th>URL</th>
|
|
<th><%= t("health_check_monitor.status") %></th>
|
|
<th><%= t("health_check_monitor.response_time") %></th>
|
|
<th>Error</th>
|
|
<th><%= t("health_check_monitor.last_checked") %></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @logs.each do |log| %>
|
|
<tr>
|
|
<td><%= log.url %></td>
|
|
<td><%= log.status %></td>
|
|
<td><%= log.response_time %></td>
|
|
<td><%= log.error_message %></td>
|
|
<td><%= log.created_at.strftime("%Y-%m-%d %H:%M:%S") %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="bottomnav clearfix">
|
|
<div class="pagination pagination-centered">
|
|
<%= paginate @logs %>
|
|
</div>
|
|
</div>
|