2 # GNU MediaGoblin -- federated, autonomous media hosting
3 # Copyright (C)
2011,
2012 MediaGoblin contributors. See AUTHORS.
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.
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.
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
/>.
18 {% extends
"mediagoblin/base.html" %}
21 {% trans %}Media processing panel{% endtrans %}
— {{ super() }}
24 {% block mediagoblin_content %}
26 <h1>{% trans %}Media processing panel{% endtrans %}
</h1>
29 {% trans %}You can track the state of media being processed for your gallery here.{% endtrans %}
32 <h2>{% trans %}Media in-processing{% endtrans %}
</h2>
34 {% if processing_entries.count() %}
35 <table class=
"media_panel processing">
39 <th>When submitted
</th>
40 <th>Transcoding progress
</th>
42 {% for media_entry in processing_entries %}
44 <td>{{ media_entry.id }}
</td>
45 <td>{{ media_entry.title }}
</td>
46 <td>{{ media_entry.created.strftime(
"%F %R") }}
</td>
47 {% if media_entry.transcoding_progress %}
48 <td>{{ media_entry.transcoding_progress }}%
</td>
56 <p><em>{% trans %}No media in-processing{% endtrans %}
</em></p>
59 <h2>{% trans %}These uploads failed to process:{% endtrans %}
</h2>
60 {% if failed_entries.count() %}
62 <table class=
"media_panel failed">
66 <th>When submitted
</th>
67 <th>Reason for failure
</th>
68 <th>Failure metadata
</th>
70 {% for media_entry in failed_entries %}
72 <td>{{ media_entry.id }}
</td>
73 <td>{{ media_entry.title }}
</td>
74 <td>{{ media_entry.created.strftime(
"%F %R") }}
</td>
75 {% if media_entry.get_fail_exception() %}
76 <td>{{ media_entry.get_fail_exception().general_message }}
</td>
77 <td>{{ media_entry.fail_metadata }}
</td>
86 <p><em>{% trans %}No failed entries!{% endtrans %}
</em></p>
89 <h2>{% trans %}Your last
10 successful uploads{% endtrans %}
</h2>
90 {% if processed_entries.count() %}
92 <table class=
"media_panel processed">
98 {% for entry in processed_entries %}
100 <td>{{ entry.id }}
</td>
101 <td><a href=
"{{ entry.url_for_self(request.urlgen) }}">{{ entry.title }}
</a></td>
102 <td>{{ entry.created.strftime(
"%F %R") }}
</td>
107 <p><em>{% trans %}No processed entries, yet!{% endtrans %}
</em></p>