Changing translations to say "amount of time ago", basically
[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 title -%}
21 {% trans %}Media processing panel{% endtrans %} &mdash; {{ super() }}
22 {%- endblock %}
23
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>
37 <th>ID</th>
38 <th>Title</th>
39 <th>When submitted</th>
40 <th>Transcoding progress</th>
41 </tr>
42 {% for media_entry in processing_entries %}
43 <tr>
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>
49 {% else %}
50 <td>Unknown</td>
51 {% endif %}
52 </tr>
53 {% endfor %}
54 </table>
55 {% else %}
56 <p><em>{% trans %}No media in-processing{% endtrans %}</em></p>
57 {% endif %}
58
59 <h2>{% trans %}These uploads failed to process:{% endtrans %}</h2>
60 {% if failed_entries.count() %}
61
62 <table class="media_panel failed">
63 <tr>
64 <th>ID</th>
65 <th>Title</th>
66 <th>When submitted</th>
67 <th>Reason for failure</th>
68 <th>Failure metadata</th>
69 </tr>
70 {% for media_entry in failed_entries %}
71 <tr>
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>
78 {% else %}
79 <td>&nbsp;</td>
80 <td>&nbsp;</td>
81 {% endif %}
82 </tr>
83 {% endfor %}
84 </table>
85 {% else %}
86 <p><em>{% trans %}No failed entries!{% endtrans %}</em></p>
87 {% endif %}
88
89 <h2>{% trans %}Your last 10 successful uploads{% endtrans %}</h2>
90 {% if processed_entries.count() %}
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>
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>
103 </tr>
104 {% endfor %}
105 </table>
106 {% else %}
107 <p><em>{% trans %}No processed entries, yet!{% endtrans %}</em></p>
108 {% endif %}
109 {% endblock %}