diff --git a/mediagoblin.example.ini b/mediagoblin.example.ini
index 52331d82..7b528359 100644
--- a/mediagoblin.example.ini
+++ b/mediagoblin.example.ini
@@ -57,4 +57,5 @@ base_url = /mgoblin_media/
[plugins]
[[mediagoblin.plugins.geolocation]]
[[mediagoblin.plugins.basic_auth]]
+[[mediagoblin.plugins.processing_info]]
[[mediagoblin.media_types.image]]
diff --git a/mediagoblin/plugins/processing_info/README.rst b/mediagoblin/plugins/processing_info/README.rst
new file mode 100644
index 00000000..3bacbf50
--- /dev/null
+++ b/mediagoblin/plugins/processing_info/README.rst
@@ -0,0 +1,5 @@
+==============
+ sampleplugin
+==============
+
+A plugin to insert some useful information about processing to templates
diff --git a/mediagoblin/plugins/processing_info/__init__.py b/mediagoblin/plugins/processing_info/__init__.py
new file mode 100644
index 00000000..e5ce0a1c
--- /dev/null
+++ b/mediagoblin/plugins/processing_info/__init__.py
@@ -0,0 +1,50 @@
+# 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
{% trans %}You can track the state of media being processed for your gallery here.{% endtrans %}
- -+Show: +All, +In processing, +Failed, +Succesful +
+ +{% if entries.count() %} + {{ render_pagination(request, pagination) }}ID | +Thumbnail | Title | -When submitted | -Transcoding progress | +When submitted | +Transcoding progress | ||
---|---|---|---|---|---|---|---|---|
{{ media_entry.id }} | + {% if media_entry.state == 'processed' %} + {% set entry_url = media_entry.url_for_self(request.urlgen) %} +
+
+
+
+ |
+ {{ media_entry.title }} | +{{ media_entry.created.strftime("%F %R") }} | +Ready | + {% else %} +
+
+
+ |
{{ media_entry.title }} | {{ media_entry.created.strftime("%F %R") }} | {% if media_entry.transcoding_progress %} @@ -49,61 +84,12 @@ {% else %}Unknown | {% endif %} + {% endif %}
{% trans %}No media in-processing{% endtrans %}
+{% trans %}You have not uploaded anything yet!{% endtrans %}
{% endif %} - -ID | -Title | -When submitted | -Reason for failure | -Failure metadata | -||
---|---|---|---|---|---|---|
{{ media_entry.id }} | -{{ media_entry.title }} | -{{ media_entry.created.strftime("%F %R") }} | - {% if media_entry.get_fail_exception() %} -{{ media_entry.get_fail_exception().general_message }} | -{{ media_entry.fail_metadata }} | - {% else %} -- | - {% endif %} - |
{% trans %}No failed entries!{% endtrans %}
-{% endif %} - -ID | -Title | -Submitted | -
---|---|---|
{{ entry.id }} | -{{ entry.title }} | -{{ entry.created.strftime("%F %R") }} | -
{% trans %}No processed entries, yet!{% endtrans %}
-{% endif %} {% endblock %} diff --git a/mediagoblin/user_pages/routing.py b/mediagoblin/user_pages/routing.py index 1a1d4139..68cb0a3b 100644 --- a/mediagoblin/user_pages/routing.py +++ b/mediagoblin/user_pages/routing.py @@ -97,6 +97,11 @@ add_route('mediagoblin.user_pages.processing_panel', '/u/