From 1a2d8fb011096f30c287eddb39e965eb2bb1b266 Mon Sep 17 00:00:00 2001
From: Donald Buczek
Date: Thu, 13 Aug 2020 16:53:37 +0200
Subject: [PATCH] Use filter add_room_links in templates
Replace usage of the room_links tag with the new add_room_links filter.
---
mpicms/templates/base/blocks/contact_block.html | 2 +-
mpicms/templates/events/event.html | 8 ++++----
mpicms/templates/personal/list.html | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/mpicms/templates/base/blocks/contact_block.html b/mpicms/templates/base/blocks/contact_block.html
index e296b2d..3a21a9e 100644
--- a/mpicms/templates/base/blocks/contact_block.html
+++ b/mpicms/templates/base/blocks/contact_block.html
@@ -25,7 +25,7 @@
{% if value.contact.room %}
|
- {{ value.contact.room }} |
+ {{ value.contact.room | add_room_links }} |
{% endif %}
diff --git a/mpicms/templates/events/event.html b/mpicms/templates/events/event.html
index 7f7efc6..73b4f33 100644
--- a/mpicms/templates/events/event.html
+++ b/mpicms/templates/events/event.html
@@ -38,10 +38,10 @@ {{ page.title }}
{% if page.room %}
-
+
- {{ page.room }}
-
+ {{ page.room | add_room_links }}
+
{% endif %}
@@ -58,4 +58,4 @@ {{ page.title }}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/mpicms/templates/personal/list.html b/mpicms/templates/personal/list.html
index 2cda009..e410f01 100644
--- a/mpicms/templates/personal/list.html
+++ b/mpicms/templates/personal/list.html
@@ -55,7 +55,7 @@ {% trans 'Contact List' %}
{{ contact.last_name }} |
{{ contact.email }} |
{{ contact.phone }} |
- {{ contact.room }} |
+ {{ contact.room | add_room_links }} |
{% for contactposition in contact.positions.all %}{{ contactposition.position }} {% endfor %} |
{% for contactgroup in contact.groups.all %}{{ contactgroup.group }} {% endfor %} |