# HG changeset patch # User Alexandre Segura # Date 1493726607 -7200 # Node ID 869bb212631aeb802dd58d06131a9b1515e33bb8 # Parent 47080491b3308005d7f3c44955e6ea4764044b36 Add link to show selected folder below collection title. diff -r 47080491b330 -r 869bb212631a src/iconolab/templates/iconolab/collection_home.html --- a/src/iconolab/templates/iconolab/collection_home.html Tue May 02 13:50:05 2017 +0200 +++ b/src/iconolab/templates/iconolab/collection_home.html Tue May 02 14:03:27 2017 +0200 @@ -48,6 +48,14 @@

{{ collection.verbose_name }} Fonds Iconolab

+ {% if folder_guid %} +

+ + {{ folder_name }} + +

+ {% endif %} + {% if not folder_guid and contributions_pagination_data.list %}

Appels à contribution

{% for annotation in contributions_pagination_data.list %} diff -r 47080491b330 -r 869bb212631a src/iconolab/views/objects.py --- a/src/iconolab/views/objects.py Tue May 02 13:50:05 2017 +0200 +++ b/src/iconolab/views/objects.py Tue May 02 14:03:27 2017 +0200 @@ -13,7 +13,7 @@ from django.contrib.sites.models import Site from django.conf import settings from notifications.models import Notification -from iconolab.models import Annotation, AnnotationRevision, Collection, Item, Image, IconolabComment, MetaCategory, MetaCategoryInfo +from iconolab.models import Annotation, AnnotationRevision, Collection, Folder, Item, Image, IconolabComment, MetaCategory, MetaCategoryInfo from iconolab.forms.annotations import AnnotationRevisionForm from iconolab.serializers import AnnotationRevisionSerializer import logging @@ -227,6 +227,7 @@ if folder is not None: items_list = items_list.filter(folders__folder_guid=folder) + context['folder_name'] = Folder.objects.get(folder_guid=folder).name context['folder_guid'] = folder