status.html 4.04 KB
Newer Older
1
{% extends 'base.html' %}
2
3
4
5
{% block scripts %}
    {{ super() }}
        <script src="{{ url_for('static', filename='js/dgenies.status.js') }}" type="text/JavaScript"></script>
{% endblock %}
6
{% block onload %}dgenies.status.init('{{ status }}', '{{ mode }}');{% endblock %}
7
{% block content %}
8
    <h2 class="status">Job name: {{ id_job }}</h2>
9
10
11
12
13
    <div class="status-body">
        {% if status == "started" %}
            <p>Your job has started.<br/>
        {% elif status == "starting" %}
            <p>Your job is starting...<br/>
14
15
        {% elif status == "scheduled-cluster" %}
            <p>Your job has been scheduled on the cluster.<br/>
16
17
18
19
        {% elif status == "submitted" or status == "waiting" %}
            <p>Your job has been submitted.<br/>
        {% elif status == "getfiles" %}
            <p>Your job has been submitted. We are retrieving data...<br/>
20
21
        {% elif status == "getfiles-waiting" %}
            <p>Your job has been submitted. We are retrieving data... (waiting for download...)<br/>
22
23
        {% elif status == "merging" %}
            <p>Your map is done. We are preparing files for visualisation...<br/>
24
        {% elif status == "preparing" or status == "preparing-cluster" %}
25
            <p>We are preparing data...<br/>
26
27
        {% elif status == "prepare-scheduled" %}
            <p>We are preparing data... [scheduled]<br/>
28
29
        {% elif status == "prepared"%}
            <p>Your data are ready to be processed. Your job will be scheduled soon...<br/>
30
31
32
33
34
        {% elif status == "scheduled" %}
            <p>Your job has been shedulded. It will start soon...<br/>
        {% elif status == "success" %}
            <p>Your job was completed successfully.<br/>
                Please <a href="/result/{{ id_job }}">click here</a> to show results.</p>
35
36
37
            {% if time_elapsed is not none %}
                <p>Time elapsed: {{ time_elapsed }}</p>
            {% endif %}
38
39
40
41
42
43
44
45
46
47
            {% if target_filtered %}
                <p>Note: target fasta has been filtered because it contains too small contigs.<br/>
                    To see which contigs has been removed from the analysis,
                    <a href="/filter-out/{{ id_job }}/target">click here</a>.</p>
            {% endif %}
            {% if query_filtered %}
                <p>Note: query fasta has been filtered because it contains too small contigs.<br/>
                    To see which contigs has been removed from the analysis,
                    <a href="/filter-out/{{ id_job }}/query">click here</a>.</p>
            {% endif %}
48
49
50
51
52
53
54
55
56
57
58
59
60
61
        {% elif status == "no-match" %}
            <p>Your job is done.<br/>
            Sorry, we did not find any match between your query and your target.</p>
        {% elif status == "fail" %}
            <p>{% if error == "" %}
                    Your job has failed.
                    Please try again.<br/>
                    If the problem persists, please contact the support.
                {% else %}
                {{ error | safe }}
                {% endif %}</p>
        {% else %}
            <p>This job does not exists!</p>
        {% endif %}
62
63
64
65
66
67
68
69
        {% if status not in ["success", "no_match", "fail"] %}
            {% if mode == "webserver" %}
                You will receive an email when it will be finished.<br/>
                Alternatively, you can refresh this page to update status.</p>
            {% else %}
                This page will refresh automatically.</p>
            {% endif %}
        {% endif %}
70
71
    </div>
    <div class="progress-status">
72
        <div class="progress-status-bar {{ status }}"><div class="inner"></div></div>
73
74
75
        <div class="tick submitted">
            <p>Submitted</p>
        </div>
76
77
78
        <div class="tick prepared">
            <p>Prepared</p>
        </div>
79
80
81
82
83
84
        <div class="tick scheduled">
            <p>Scheduled</p>
        </div>
        <div class="tick started">
            <p>Started</p>
        </div>
85
86
        <div class="tick merging">
            <p>Merging</p>
87
88
89
90
91
        </div>
        <div class="tick success">
            <p>Done</p>
        </div>
    </div>
92
{% endblock %}