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 .thumb-overlay-status {
37 top:
0; bottom:
0; left:
0; right:
0;
47 background-color: rgba(
255,
255,
255,
0.8);
53 background-color: rgba(
127,
0,
0,
0.5);
58 /* for proportional thumb resizing */
61 display: inline-block;
69 vertical-align: middle;
73 {% if entries.count() %}
74 <table class=
"media_panel processing">
78 <th>When submitted
</th>
79 <th>Transcoding progress
</th>
81 {% for media_entry in entries %}
83 {% if media_entry.state == 'processed' %}
84 {% set entry_url = media_entry.url_for_self(request.urlgen) %}
86 <div class=
"thumb-wrapper">
87 <a href=
"{{ entry_url }}">
88 <img src=
"{{ media_entry.thumb_url }}" alt=
"{{ media_entry.title }}" />
92 <td><a href=
"{{ entry_url }}">{{ media_entry.title }}
</a></td>
93 <td>{{ media_entry.created.strftime(
"%F %R") }}
</td>
97 <div class=
"thumb-wrapper">
98 <img src=
"{{ media_entry.thumb_url }}" alt=
"{{ media_entry.title }}" />
99 {% if media_entry.state == 'processing' %}
100 <div class=
"thumb-overlay-status thumb-processing">Processing...
</div>
101 {% elif media_entry.state == 'failed' %}
102 <div class=
"thumb-overlay-status thumb-failed">Failed!
</div>
106 <td>{{ media_entry.title }}
</td>
107 <td>{{ media_entry.created.strftime(
"%F %R") }}
</td>
108 {% if media_entry.transcoding_progress %}
109 <td>{{ media_entry.transcoding_progress }}%
</td>
118 <p><em>{% trans %}You have not uploaded anything yet!{% endtrans %}
</em></p>