{# # GNU MediaGoblin -- federated, autonomous media hosting # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #} {% extends "mediagoblin/base.html" %} {% block title -%} {% trans %}Media processing panel{% endtrans %} — {{ super() }} {%- endblock %} {% block mediagoblin_content %}

{% trans %}Media processing panel{% endtrans %}

{% trans %}Here you can track the state of media being processed on this instance.{% endtrans %}

{% trans %}Media in-processing{% endtrans %}

{% if processing_entries.count() %} {% for media_entry in processing_entries %} {% if media_entry.transcoding_progress %} {% else %} {% endif %} {% endfor %}
ID User Title When submitted Transcoding progress
{{ media_entry.id }} {{ media_entry.get_uploader.username }} {{ media_entry.title }} {{ media_entry.created.strftime("%F %R") }}{{ media_entry.transcoding_progress }}%Unknown
{% else %}

{% trans %}No media in-processing{% endtrans %}

{% endif %}

{% trans %}These uploads failed to process:{% endtrans %}

{% if failed_entries.count() %} {% for media_entry in failed_entries %} {% if media_entry.get_fail_exception() %} {% else %} {% endif %} {% endfor %}
ID User Title When submitted Reason for failure Failure metadata
{{ media_entry.id }} {{ media_entry.get_uploader.username }} {{ media_entry.title }} {{ media_entry.created.strftime("%F %R") }}{{ media_entry.get_fail_exception().general_message }} {{ media_entry.fail_metadata }}   
{% else %}

{% trans %}No failed entries!{% endtrans %}

{% endif %}

{% trans %}Last 10 successful uploads{% endtrans %}

{% if processed_entries.count() %} {% for media_entry in processed_entries %} {% endfor %}
ID User Title Submitted
{{ media_entry.id }} {{ media_entry.get_uploader.username }} {{ media_entry.title }} {{ timesince(media_entry.created) }}
{% else %}

{% trans %}No processed entries, yet!{% endtrans %}

{% endif %} {% endblock %}