# HG changeset patch # User cavaliet # Date 1370614648 -7200 # Node ID aa57d0d436d6450b416d725fff9cb0528035fb7c # Parent f0d132d6beedcf7567057e7f8897df37a9878a69 little debug diff -r f0d132d6beed -r aa57d0d436d6 src/metadatacomposer/templates/partial/library_image_list.html --- a/src/metadatacomposer/templates/partial/library_image_list.html Fri Jun 07 15:41:12 2013 +0200 +++ b/src/metadatacomposer/templates/partial/library_image_list.html Fri Jun 07 16:17:28 2013 +0200 @@ -1,11 +1,12 @@ {% load static %} {% load i18n %} {% load thumbnail %} +{% load absurl %} {% load front_tags %}
{% for i in image_results %}
- {% thumbnail i.image_file "140x140" crop="center" format="PNG" as im %}{% empty %}{% endthumbnail %} diff -r f0d132d6beed -r aa57d0d436d6 src/metadatacomposer/views.py --- a/src/metadatacomposer/views.py Fri Jun 07 15:41:12 2013 +0200 +++ b/src/metadatacomposer/views.py Fri Jun 07 16:17:28 2013 +0200 @@ -219,7 +219,10 @@ for content in results.object_list: # We filter the content's projects with the user's ones if select_media: - content.url = content.videopath.rstrip('/') + "/" + content.src + if not content.videopath and content.videopath!="": + content.url = content.videopath.rstrip('/') + "/" + content.src + else: + content.url = content.src elif create_empty_project: content.url = "create_project_for_me" projects = content.project_set.all().filter(owner=user)