From 937f1ab38b7931fd45a91da2a2e5662a320d0c18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 8 Jan 2023 23:12:06 +0100 Subject: [PATCH] Show master picture attachment in poject info page, when existing --- templates/Projects/info/_info.html.twig | 8 +++++++- templates/Projects/info/info.html.twig | 10 ---------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/templates/Projects/info/_info.html.twig b/templates/Projects/info/_info.html.twig index fb8c70be..c2d36d67 100644 --- a/templates/Projects/info/_info.html.twig +++ b/templates/Projects/info/_info.html.twig @@ -4,7 +4,13 @@
- Part main image + {% if project.masterPictureAttachment %} + + + + {% else %} + Part main image + {% endif %}

{{ project.name }} diff --git a/templates/Projects/info/info.html.twig b/templates/Projects/info/info.html.twig index f93c1d52..ce920e9e 100644 --- a/templates/Projects/info/info.html.twig +++ b/templates/Projects/info/info.html.twig @@ -9,16 +9,6 @@ {{ helper.breadcrumb_entity_link(project) }} {{ parent() }} - - {# {% include "Projects/_info_card.html.twig" %} #} - - {# {{ datatables.datatable(datatable, 'elements/datatables/datatables', 'projects') }} #} - - - {# {% include "Parts/lists/_action_bar.html.twig" with {'url_options': {'category': entity.iD}} %} - - {% include "Parts/lists/_parts_list.html.twig" %} #} - {% endblock %} {% block card_title %}