Commit | Line | Data |
---|---|---|
01c75c7e CAW |
1 | {# |
2 | # GNU MediaGoblin -- federated, autonomous media hosting | |
cf29e8a8 | 3 | # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. |
01c75c7e CAW |
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>Title</th> | |
34 | <th>When submitted</th> | |
35 | <th>Status</th> | |
36 | </tr> | |
37 | {% for media_entry in processing_entries %} | |
38 | <tr> | |
ec82fbd8 | 39 | <td>{{ media_entry.title }}</td> |
05478430 | 40 | <td>{{ media_entry.created.strftime("%m-%d-%Y %I:%M %p") }}</td> |
01c75c7e CAW |
41 | <td></td> |
42 | </tr> | |
43 | {% endfor %} | |
44 | </table> | |
45 | {% else %} | |
46 | <p><i>{% trans %}No media in-processing{% endtrans %}</i></p> | |
47 | {% endif %} | |
48 | ||
49 | {% if failed_entries.count() %} | |
50 | <h2>{% trans %}These uploads failed to process:{% endtrans %}</h2> | |
51 | ||
52 | <table class="media_panel failed"> | |
53 | <tr> | |
54 | <th>Title</th> | |
55 | <th>When submitted</th> | |
56 | <th>Reason for failure</th> | |
57 | </tr> | |
58 | {% for media_entry in failed_entries %} | |
59 | <tr> | |
ec82fbd8 | 60 | <td>{{ media_entry.title }}</td> |
01c75c7e CAW |
61 | <td>{{ media_entry['created'].strftime("%m-%d-%Y %I:%M %p") }}</td> |
62 | <td>{{ media_entry.get_fail_exception().general_message }}</td> | |
63 | </tr> | |
64 | {% endfor %} | |
65 | </table> | |
66 | {% endif %} | |
67 | {% endblock %} |