# HG changeset patch # User cavaliet # Date 1370358225 -7200 # Node ID 1c57dae87b57eeee6b1d087b2905e7752383ca8b # Parent c6d543b0f0b636bbe7a6e880ca453b07dd8de82f better popup management preview for images and contents. diff -r c6d543b0f0b6 -r 1c57dae87b57 src/metadatacomposer/templates/metadatacomposer_home.html --- a/src/metadatacomposer/templates/metadatacomposer_home.html Tue Jun 04 15:01:26 2013 +0200 +++ b/src/metadatacomposer/templates/metadatacomposer_home.html Tue Jun 04 17:03:45 2013 +0200 @@ -75,21 +75,10 @@
{% for i in images %}
- {% thumbnail i.image_file "140x140" crop="center" format="PNG" as im %}{% empty %}{% endthumbnail %} + + {% thumbnail i.image_file "140x140" crop="center" format="PNG" as im %}{% empty %}{% endthumbnail %}

{{ i.title }}

- {% endfor %}
@@ -105,7 +94,8 @@
{% for c in contents %}
- {% thumbnail c.image "140x140" crop="center" format="PNG" as im %}{% empty %}{% endthumbnail %} + + {% thumbnail c.image "140x140" crop="center" format="PNG" as im %}{% empty %}{% endthumbnail %}

{{ c.title }}

{% endfor %} @@ -134,42 +124,6 @@ {% endblock %} {% block js_page %} - {% endblock %} {% endblock %} {% analytics %} diff -r c6d543b0f0b6 -r 1c57dae87b57 src/metadatacomposer/templates/metadatacomposer_project_list.html --- a/src/metadatacomposer/templates/metadatacomposer_project_list.html Tue Jun 04 15:01:26 2013 +0200 +++ b/src/metadatacomposer/templates/metadatacomposer_project_list.html Tue Jun 04 17:03:45 2013 +0200 @@ -35,7 +35,7 @@ {% thumbnail p.image "60x60" crop="center" format="PNG" as im %}{% empty %}{% endthumbnail %} {{ p.title }} - {% with c=p.contents.all|first %}{{ c.title }}{% endwith %} + {% with c=p.contents.all|first %}{{ c.title }}{% endwith %} {{ p.modification_date|date:"Y/m/d" }}
diff -r c6d543b0f0b6 -r 1c57dae87b57 src/metadatacomposer/templates/partial/resource_content_list.html --- a/src/metadatacomposer/templates/partial/resource_content_list.html Tue Jun 04 15:01:26 2013 +0200 +++ b/src/metadatacomposer/templates/partial/resource_content_list.html Tue Jun 04 17:03:45 2013 +0200 @@ -15,7 +15,10 @@ {% for res in content_results %} - {% thumbnail res.content.image "60x60" crop="center" format="PNG" as im %}{% empty %}{% endthumbnail %} + + + {% thumbnail res.content.image "60x60" crop="center" format="PNG" as im %}{% empty %}{% endthumbnail %} + {{ res.content.title }}