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 | ||
daecdea9 A |
20 | {% block title -%} |
21 | {% trans %}Media processing panel{% endtrans %} — {{ super() }} | |
22 | {%- endblock %} | |
23 | ||
01c75c7e CAW |
24 | {% block mediagoblin_content %} |
25 | ||
26 | <h1>{% trans %}Media processing panel{% endtrans %}</h1> | |
27 | ||
28 | <p> | |
29 | {% trans %}You can track the state of media being processed for your gallery here.{% endtrans %} | |
30 | </p> | |
31 | ||
32 | <h2>{% trans %}Media in-processing{% endtrans %}</h2> | |
33 | ||
34 | {% if processing_entries.count() %} | |
35 | <table class="media_panel processing"> | |
36 | <tr> | |
51eb0267 | 37 | <th>ID</th> |
01c75c7e CAW |
38 | <th>Title</th> |
39 | <th>When submitted</th> | |
64712915 | 40 | <th>Transcoding progress</th> |
01c75c7e CAW |
41 | </tr> |
42 | {% for media_entry in processing_entries %} | |
43 | <tr> | |
5c2b8486 | 44 | <td>{{ media_entry.id }}</td> |
ec82fbd8 | 45 | <td>{{ media_entry.title }}</td> |
b3b42bbe | 46 | <td>{{ media_entry.created.strftime("%F %R") }}</td> |
64712915 JW |
47 | {% if media_entry.transcoding_progress %} |
48 | <td>{{ media_entry.transcoding_progress }}%</td> | |
49 | {% else %} | |
50 | <td>Unknown</td> | |
51 | {% endif %} | |
01c75c7e CAW |
52 | </tr> |
53 | {% endfor %} | |
54 | </table> | |
55 | {% else %} | |
64712915 | 56 | <p><em>{% trans %}No media in-processing{% endtrans %}</em></p> |
01c75c7e CAW |
57 | {% endif %} |
58 | ||
808eac00 | 59 | <h2>{% trans %}These uploads failed to process:{% endtrans %}</h2> |
01c75c7e | 60 | {% if failed_entries.count() %} |
01c75c7e CAW |
61 | |
62 | <table class="media_panel failed"> | |
63 | <tr> | |
51eb0267 | 64 | <th>ID</th> |
01c75c7e CAW |
65 | <th>Title</th> |
66 | <th>When submitted</th> | |
67 | <th>Reason for failure</th> | |
51eb0267 | 68 | <th>Failure metadata</th> |
01c75c7e CAW |
69 | </tr> |
70 | {% for media_entry in failed_entries %} | |
71 | <tr> | |
5c2b8486 | 72 | <td>{{ media_entry.id }}</td> |
ec82fbd8 | 73 | <td>{{ media_entry.title }}</td> |
b3b42bbe | 74 | <td>{{ media_entry.created.strftime("%F %R") }}</td> |
51eb0267 | 75 | {% if media_entry.get_fail_exception() %} |
01c75c7e | 76 | <td>{{ media_entry.get_fail_exception().general_message }}</td> |
51eb0267 JW |
77 | <td>{{ media_entry.fail_metadata }}</td> |
78 | {% else %} | |
79 | <td> </td> | |
80 | <td> </td> | |
81 | {% endif %} | |
01c75c7e CAW |
82 | </tr> |
83 | {% endfor %} | |
84 | </table> | |
64712915 JW |
85 | {% else %} |
86 | <p><em>{% trans %}No failed entries!{% endtrans %}</em></p> | |
87 | {% endif %} | |
808eac00 JW |
88 | |
89 | <h2>{% trans %}Your last 10 successful uploads{% endtrans %}</h2> | |
64712915 | 90 | {% if processed_entries.count() %} |
64712915 JW |
91 | |
92 | <table class="media_panel processed"> | |
93 | <tr> | |
94 | <th>ID</th> | |
95 | <th>Title</th> | |
96 | <th>Submitted</th> | |
97 | </tr> | |
98 | {% for entry in processed_entries %} | |
99 | <tr> | |
5c2b8486 | 100 | <td>{{ entry.id }}</td> |
64712915 | 101 | <td><a href="{{ entry.url_for_self(request.urlgen) }}">{{ entry.title }}</a></td> |
b3b42bbe | 102 | <td>{{ entry.created.strftime("%F %R") }}</td> |
64712915 JW |
103 | </tr> |
104 | {% endfor %} | |
105 | </table> | |
106 | {% else %} | |
107 | <p><em>{% trans %}No processed entries, yet!{% endtrans %}</em></p> | |
108 | {% endif %} | |
01c75c7e | 109 | {% endblock %} |