|
6 | 6 |
|
7 | 7 | <h2>Submissions</h2>
|
8 | 8 |
|
9 |
| -<table class="table"> |
10 |
| - <tbody> |
11 |
| - <tr> |
12 |
| - <th scope="row">High priority submissions in queue </th scope="row"> |
13 |
| - <td><%= @high_priority_submissions_count %></td> |
14 |
| - </tr> |
15 |
| - <tr> |
16 |
| - <th scope="row">All submissions in queue</th scope="row"> |
17 |
| - <td><%= @sandbox_queue_length %></td> |
18 |
| - </tr> |
19 |
| - <tr> |
20 |
| - <th scope="row">Submissions, processing not complete</th> |
21 |
| - <td><%= @unprocessed_submissions_count %></td> |
22 |
| - </tr> |
23 |
| - <tr> |
24 |
| - <th scope="row">Submissions during the last minute</th> |
25 |
| - <td><%= @submissions_count_minute %></td> |
26 |
| - </tr> |
27 |
| - <tr> |
28 |
| - <th scope="row">Submissions during the last five minutes</th> |
29 |
| - <td><%= @submissions_count_five_minutes %></td> |
30 |
| - </tr> |
31 |
| - <tr> |
32 |
| - <th scope="row">Submissions during the latest hour</th> |
33 |
| - <td><%= @submissions_count_hour %></td> |
34 |
| - </tr> |
35 |
| - <tr> |
36 |
| - <th scope="row">Submissions today</th> |
37 |
| - <td><%= @submissions_count_today %></td> |
38 |
| - </tr> |
39 |
| - <tr> |
40 |
| - <th scope="row">Submissions yesterday</th> |
41 |
| - <td><%= @submissions_count_yesterday %></td> |
42 |
| - </tr> |
43 |
| - <tr> |
44 |
| - <th scope="row">Submissions this week</th> |
45 |
| - <td><%= @submissions_count_week %></td> |
46 |
| - </tr> |
47 |
| - </tbody> |
48 |
| -</table> |
| 9 | +<% if @stats %> |
| 10 | + <table class="table"> |
| 11 | + <tbody> |
| 12 | + <tr> |
| 13 | + <th scope="row">High priority submissions in queue </th scope="row"> |
| 14 | + <td><%= @stats['high_priority_submissions_count'] %></td> |
| 15 | + </tr> |
| 16 | + <tr> |
| 17 | + <th scope="row">All submissions in queue</th scope="row"> |
| 18 | + <td><%= @stats['sandbox_queue_length'] %></td> |
| 19 | + </tr> |
| 20 | + <tr> |
| 21 | + <th scope="row">Submissions, processing not complete</th> |
| 22 | + <td><%= @stats['unprocessed_submissions_count'] %></td> |
| 23 | + </tr> |
| 24 | + <tr> |
| 25 | + <th scope="row">Submissions during the last minute</th> |
| 26 | + <td><%= @stats['submissions_count_minute'] %></td> |
| 27 | + </tr> |
| 28 | + <tr> |
| 29 | + <th scope="row">Submissions during the last five minutes</th> |
| 30 | + <td><%= @stats['submissions_count_five_minutes'] %></td> |
| 31 | + </tr> |
| 32 | + <tr> |
| 33 | + <th scope="row">Submissions during the latest hour</th> |
| 34 | + <td><%= @stats['submissions_count_hour'] %></td> |
| 35 | + </tr> |
| 36 | + <tr> |
| 37 | + <th scope="row">Submissions today</th> |
| 38 | + <td><%= @stats['submissions_count_today'] %></td> |
| 39 | + </tr> |
| 40 | + <tr> |
| 41 | + <th scope="row">Submissions yesterday</th> |
| 42 | + <td><%= @stats['submissions_count_yesterday'] %></td> |
| 43 | + </tr> |
| 44 | + <tr> |
| 45 | + <th scope="row">Submissions this week</th> |
| 46 | + <td><%= @stats['submissions_count_week'] %></td> |
| 47 | + </tr> |
| 48 | + </tbody> |
| 49 | + </table> |
| 50 | +<% else %> |
| 51 | + <p>No stats cached within the last minute. Check if the background daemon is running.</p> |
| 52 | +<% end %> |
49 | 53 |
|
50 | 54 |
|
51 | 55 | <h2>Sandboxes</h2>
|
|
0 commit comments