mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-16 21:11:38 +00:00
Upgraded to rails 8.0.2, moved from dalli to solid cache, moved from delayed_job to solid queue, and add solid cable. deploy/rails-dev-run.sh no longer needs to chmod. Fixed finished_at callback for matches. Migrated from Devise to built in rails auth. Added view tests for the bracket page testing that all bout numbers render for all matches in each bracket type.
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
<h3>
|
||||
Info
|
||||
</h3>
|
||||
|
||||
<% if (can? :manage, @tournament) && @tournament.curently_generating_matches == 1 %>
|
||||
<div class="alert alert-info">
|
||||
<strong>Match Generation In Progress</strong>
|
||||
<p>Tournament bracket generation is currently running. Please refresh the page to check progress.</p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<p>
|
||||
<strong>Address:</strong>
|
||||
<%= @tournament.address %>
|
||||
@@ -118,34 +126,4 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<% end %>
|
||||
<% if can? :manage, @tournament %>
|
||||
<br><br>
|
||||
<h3>Background Jobs</h3>
|
||||
<p>This is a list of queued or running background jobs. Match generation, bracket advancement, team score calculation, etc.</p>
|
||||
<table class="table table-hover table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name of Job</th>
|
||||
<th>Job Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @tournament.deferred_jobs.each do |job| %>
|
||||
<tr>
|
||||
<td><%= job.job_owner_type %></td>
|
||||
<td>
|
||||
<% if job.locked_at %>
|
||||
Running
|
||||
<% elsif job.last_error %>
|
||||
Error
|
||||
<% elsif job.attempts == 0 and !job.locked_at %>
|
||||
Pending
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<% end %>
|
||||
<br><br>
|
||||
|
||||
Reference in New Issue
Block a user