Cleanup and get rspec to run again

This commit is contained in:
Chris Seelus
2021-02-11 16:57:23 +01:00
parent 6fee31fc81
commit ee79596509
63 changed files with 457 additions and 1448 deletions

View File

@@ -21,21 +21,18 @@
<td>
<% if job.last_performed_at.nil? %>
<span class="grey-text darken-3" title="This job has never been performed yet.">
<i class="mdi-device-access-time"></i>
Pending
◷ Pending
</span>
<% elsif job.healthy %>
<a href="<%= job_path(job) %>">
<span class="green-text darken-3" title="This job was performed successfully.">
<i class="mdi-action-done"></i>
Success
✔ Success
</span>
</a>
<% else %>
<a href="<%= job_path(job) %>">
<span class="red-text" title="There were problems with this job. Follow the link to check the log.">
<i class="mdi-alert-warning"></i>
Error
⚠ Error
</span>
</a>
<% end %>
@@ -43,8 +40,7 @@
<td>
<% if job.last_performed_at %>
<a href="<%= job_path(job) %>" class="right">
Log
<i class="mdi-navigation-chevron-right"></i>
Log
</a>
<% end %>
</td>

View File

@@ -1,14 +1,13 @@
<header class="blue-grey lighten-4 grey-text text-darken-4">
<a href="<%= root_url %>">
<i class="mdi-navigation-chevron-left"></i>
&lsaquo; Back to Home
Back to Home
</a>
<h4>Last log of <i><%= @job.job_id %></i>:</h4>
</header>
<% if @job.healthy == false %>
<div class="row red-text">
<div class="s12 center-align">
<i class="mdi-alert-warning"></i>
An error occurs during the last execution of this job.
Check the log below for details.
</div>