]> git.parisson.com Git - mezzo.git/commitdiff
Project details breadcrumb
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Wed, 28 Sep 2016 09:16:53 +0000 (11:16 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Wed, 28 Sep 2016 09:16:53 +0000 (11:16 +0200)
app/templates/projects/project_detail.html

index 6fbc69d12487953e752902d08af82ffd9cf297c5..910ee260e547ec3cc5b65d521de5c9e50dfebd9d 100644 (file)
         <li class="breadcrumb__item"><a class="breadcrumb__link" href="{{ department.pages.all.0.get_absolute_url }}">{{ department.name }}</a></li>
     {% endif %}
     {% if project.topic and project.topic.parent %}
+        <li class="breadcrumb__item"><a class="breadcrumb__link" href="{{ project.topic.parent.pages.all.0.get_ascendants.0.get_absolute_url }}">{{ project.topic.parent.pages.all.0.get_ascendants.0.title }}</a></li>
         <li class="breadcrumb__item"><a class="breadcrumb__link" href="{{ project.topic.parent.pages.all.0.get_absolute_url }}">{{ project.topic.parent }}</a></li>
     {% elif project.topic %}
+        <li class="breadcrumb__item"><a class="breadcrumb__link" href="{{ project.topic.pages.all.0.get_ascendants.0.get_absolute_url }}">{{ project.topic.pages.all.0.get_ascendants.0.title }}</a></li>
         <li class="breadcrumb__item"><a class="breadcrumb__link" href="{{ project.topic.pages.all.0.get_absolute_url }}">{{ project.topic }}</a></li>
     {% endif %}