mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 01:43:13 +00:00
add time to message, ad status info in worker table, fix subdef elastic flush
This commit is contained in:
@@ -10,6 +10,11 @@
|
||||
{{ "Configuration" | trans }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="worker-info" role="presentation">
|
||||
<a href="#worker-info" aria-controls="worker-info" role="tab" data-toggle="tab" data-url="/admin/worker-manager/info">
|
||||
{{ "Working info" | trans }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="worker-searchengine" role="presentation">
|
||||
<a href="#worker-searchengine" aria-controls="worker-searchengine" role="tab" data-toggle="tab" data-url="/admin/worker-manager/searchengine">
|
||||
{{ "Searchengine" | trans }}
|
||||
@@ -36,6 +41,7 @@
|
||||
<!-- Tab panes -->
|
||||
<div class="tab-content">
|
||||
<div role="tabpanel" class="tab-pane fade" id="worker-configuration"></div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="worker-info"></div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="worker-searchengine"></div>
|
||||
<div role="tabpanel" class="tab-pane fade" id="worker-pull-assets"></div>
|
||||
<div role="tabpanel" class="tab-pane fade in active" id="worker-subview"></div>
|
||||
|
49
templates/web/admin/worker-manager/worker_info.html.twig
Normal file
49
templates/web/admin/worker-manager/worker_info.html.twig
Normal file
@@ -0,0 +1,49 @@
|
||||
<h1> worker information</h1>
|
||||
|
||||
<form action="{{ path("worker_admin_truncate") }}" method="POST">
|
||||
<p class="alert alert-danger">
|
||||
<strong>Warning!</strong>
|
||||
It's truncate all work table content !
|
||||
</p>
|
||||
<button class="btn btn-primary">
|
||||
{{ 'Truncate table' }}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<form action="{{ path("worker_admin_delete_finished") }}" method="POST">
|
||||
<p class="alert alert-danger">
|
||||
<strong>Warning!</strong>
|
||||
It's delete all finished works !
|
||||
</p>
|
||||
<button class="btn btn-primary">
|
||||
{{ 'Delete finished' }}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<table class="admintable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="sortable">databox_id</th>
|
||||
<th class="sortable">record_id</th>
|
||||
<th class="sortable">work</th>
|
||||
<th class="sortable">work_on</th>
|
||||
<th class="sortable">created</th>
|
||||
<th class="sortable">published</th>
|
||||
<th class="sortable">status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for workerRow in workerRunningJob %}
|
||||
<tr>
|
||||
<td>{{ workerRow.databoxId }}</td>
|
||||
<td>{{ workerRow.recordId }}</td>
|
||||
<td>{{ workerRow.work }}</td>
|
||||
<td>{{ workerRow.workOn }}</td>
|
||||
<td>{{ workerRow.created|date('Y-m-d H:i:s') }}</td>
|
||||
<td>{{ workerRow.published|date('Y-m-d H:i:s') }}</td>
|
||||
<td>{{ workerRow.status }}</td>
|
||||
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
Reference in New Issue
Block a user