From: Boris Bobrov
ID | @@ -39,9 +78,31 @@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 %} +
+
+
+ {% if media_entry.state == 'processing' %}
+
+
+ {% elif media_entry.state == 'failed' %}
+
+ {% endif %}
+ |
{{ media_entry.title }} | {{ media_entry.created.strftime("%F %R") }} | {% if media_entry.transcoding_progress %} @@ -49,61 +110,11 @@ {% 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/views.py b/mediagoblin/user_pages/views.py index 88e077d4..50e5c3a4 100644 --- a/mediagoblin/user_pages/views.py +++ b/mediagoblin/user_pages/views.py @@ -671,6 +671,9 @@ def processing_panel(request): state = u'processed').\ order_by(MediaEntry.created.desc()).\ limit(10) + + entries = (MediaEntry.query.filter_by(uploader=user.id) + .order_by(MediaEntry.created.desc())) # Render to response return render_to_response( @@ -679,7 +682,8 @@ def processing_panel(request): {'user': user, 'processing_entries': processing_entries, 'failed_entries': failed_entries, - 'processed_entries': processed_entries}) + 'processed_entries': processed_entries, + 'entries': entries}) @allow_reporting @get_user_media_entry