1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
% layout 'minion', title => 'Minion - Locks';
%= include 'minion/_notifications'
%= form_for 'minion_unlock' => begin
<div class="d-flex justify-content-between">
<div>
<button class="btn btn-outline-secondary" type="submit">
<i class="fas fa-lock"></i> Unlock
</button>
</div>
<p class="text-center">
% if (@$locks) {
<%= $offset + 1 %>-<%= $offset + @$locks %> of <%= $total %>
% }
</p>
%= include 'minion/_limit'
</div>
<div class="row">
<div class="col-md-12">
<table class="table">
<thead>
<tr>
<th><input class="checkall" data-check="name" type="checkbox"></th>
<th>Name</th>
<th>Expires</th>
</tr>
</thead>
% my $i = 0;
% for my $lock (@$locks) {
% $i++;
% my $base = url_with->query(offset => 0);
<tbody>
<tr>
<td>
<input type="checkbox" name="name" value="<%= $lock->{name} %>">
</td>
<td>
<a href="<%= url_for->query([name => $lock->{name}]) %>">
<%= $lock->{name} %>
</a>
</td>
<td class="from-now"><%= $lock->{expires} %></td>
</tr>
</tbody>
% }
</table>
</div>
</div>
% end
<div class="d-flex justify-content-center">
%= include 'minion/_pagination'
</div>
|