Minor improvements to the processing panel
[mediagoblin.git] / mediagoblin / templates / mediagoblin / user_pages / processing_panel.html
1 {#
2 # GNU MediaGoblin -- federated, autonomous media hosting
3 # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
4 #
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU Affero General Public License for more details.
14 #
15 # You should have received a copy of the GNU Affero General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #}
18 {% extends "mediagoblin/base.html" %}
19
20 {% block mediagoblin_content %}
21
22 <h1>{% trans %}Media processing panel{% endtrans %}</h1>
23
24 <p>
25 {% trans %}You can track the state of media being processed for your gallery here.{% endtrans %}
26 </p>
27
28 <h2>{% trans %}Media in-processing{% endtrans %}</h2>
29
30 {% if processing_entries.count() %}
31 <table class="media_panel processing">
32 <tr>
33 <th>ID</th>
34 <th>Title</th>
35 <th>When submitted</th>
36 <th>Status</th>
37 </tr>
38 {% for media_entry in processing_entries %}
39 <tr>
40 <td>{{ media_entry._id }}</td>
41 <td>{{ media_entry.title }}</td>
42 <td>{{ media_entry.created.strftime("%m-%d-%Y %I:%M %p") }}</td>
43 <td></td>
44 </tr>
45 {% endfor %}
46 </table>
47 {% else %}
48 <p><i>{% trans %}No media in-processing{% endtrans %}</i></p>
49 {% endif %}
50
51 {% if failed_entries.count() %}
52 <h2>{% trans %}These uploads failed to process:{% endtrans %}</h2>
53
54 <table class="media_panel failed">
55 <tr>
56 <th>ID</th>
57 <th>Title</th>
58 <th>When submitted</th>
59 <th>Reason for failure</th>
60 <th>Failure metadata</th>
61 </tr>
62 {% for media_entry in failed_entries %}
63 <tr>
64 <td>{{ media_entry._id }}</td>
65 <td>{{ media_entry.title }}</td>
66 <td>{{ media_entry.created.strftime("%m-%d-%Y %I:%M %p") }}</td>
67 {% if media_entry.get_fail_exception() %}
68 <td>{{ media_entry.get_fail_exception().general_message }}</td>
69 <td>{{ media_entry.fail_metadata }}</td>
70 {% else %}
71 <td>&nbsp;</td>
72 <td>&nbsp;</td>
73 {% endif %}
74 </tr>
75 {% endfor %}
76 </table>
77 {% endif %}
78 {% endblock %}