Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F111514191
bibworkflow_index.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, May 2, 20:40
Size
6 KB
Mime Type
text/html
Expires
Sun, May 4, 20:40 (2 d)
Engine
blob
Format
Raw Data
Handle
25914946
Attached To
R3600 invenio-infoscience
bibworkflow_index.html
View Options
{% extends "bibworkflow_layout.html" %}
{%- js 'js/bibworkflow_index.js' -%}
{% block body2 %}
<div class="alert alert-block">
<button type="button" class="close" data-dismiss="alert">×</button>
<h4>Warning!</h4>
Much of the functionality of the BibWorkflow admin pages are placeholder
only and are not working as expected.
</div>
<h1>Workflows list</h1>
<form>
<fieldset>
<legend>Filter</legend>
<label>Available fields
<select id="search_key_1">
{% for key in filter_keys %}
<option>{{ key }}</option>
{% endfor %}
</select>
<select id="search_key_2" disabled>
</select>
</label>
<span class="btn" id="search_button">Add filter</span>
</fieldset>
</form>
<div class="well" id="search_tags">
</div>
<table class="table table-striped">
<thead>
<tr>
<th>Id</th>
<th>Workflow name</th>
<th>User</th>
<th>Started</th>
<th>Modified</th>
<th>Last task</th>
<th>Progress</th>
<th>Error msg.</th>
</tr>
</thead>
<tbody>
{% for workflow in workflows %}
<tr class="workflow" name="{{ workflow.uuid }}">
<td>{{ workflow.uuid }}</td>
<td>{{ workflow.name }}</td>
<td>{{ workflow.uid }}</td>
<td>{{ workflow.created }}</td>
<td>{{ workflow.modified }}</td>
<td title="{{ workflow.last_task_description }}">{{ workflow.last_task_name }}</td>
<td title="Elements: {{ workflow.counter_initial }}
Halted: {{ workflow.counter_halted }}
Error: {{ workflow.counter_error }}
Finished: {{ workflow.counter_finished }}">
{% if workflow.counter_initial %}
{%- set progress = (workflow.counter_error + workflow.counter_finished + workflow.counter_halted) / workflow.counter_initial * 100 -%}
{% else %}
{%- set progress = 0 -%}
{% endif %}
Progress: <span class="pull-right strong">{{ progress|int }}%</span>
{% if workflow.status == 0 %}
<div class="progress progress active">
<div class="bar" style="width: {{ progress }}%;"></div>
{% elif workflow.status == 1 %}
<div class="progress progress-striped active">
<div class="bar" style="width: {{ progress }}%;"></div>
{% elif workflow.status == 2 %}
<div class="progress progress-warning active">
<div class="bar" style="width: {{ progress }}%;"></div>
{% elif workflow.status == 3 %}
<div class="progress progress-danger active">
<div class="bar" style="width: {{ progress }}%;"></div>
{% elif workflow.status == 4 %}
<div class="progress progress-success active">
<div class="bar" style="width: {{ progress }}%;"></div>
{% endif %}
<!-- closing progress bar -->
</div>
</td>
<td>{{ workflow.error_msg }}</td>
</tr>
{%- if workflow.objects -%}
<tr>
<td colspan="8">
<table>
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>User</th>
<th>Cr. date</th>
<th>Mod. date</th>
<th>Description</th>
<th>Version</th>
<th>Message</th>
<th>Parent ID</th>
<th>Status</th>
</tr>
</thead>
<tbody>
{% for object in workflow.objects %}
<tr class="object" name="{{ object.id }}">
<td>{{ object.id }}</td>
<td>{{ object.name|truncate(20) }}</td>
<td>{{ workflow.uid }}</td>
<td>{{ object.created }}</td>
<td>{{ object.modified }}</td>
<td title="{{ workflow.last_task_description }}">{{ workflow.last_task_name }}</td>
<td>
{% if object.version == 0 %}
<span class="badge badge-info">Initial</span>
{% elif object.version == 1 %}
<span class="badge badge-success">Final</span>
{% elif object.version == 2 %}
<span class="badge badge-important">Error</span>
{% endif %}
</td>
<td title="{{ object.error_msg }}">{{ object.error_msg|truncate(50) }}</td>
<td>{{ object.id_parent }}</td>
<td>{{ object.state }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</td>
</tr>
{%- endif -%}
{% endfor %}
</tbody>
</table>
{% endblock %}
Event Timeline
Log In to Comment