Updated notification interface
authorThierry Florac <thierry.florac@onf.fr>
Mon, 11 Sep 2017 13:47:49 +0200
changeset 19 395cae360379
parent 18 19a1bbc2920c
child 20 4b7b518e1fb9
Updated notification interface
src/pyams_notify/viewlet/templates/notifications.pt
--- a/src/pyams_notify/viewlet/templates/notifications.pt	Thu Jul 13 11:02:26 2017 +0200
+++ b/src/pyams_notify/viewlet/templates/notifications.pt	Mon Sep 11 13:47:49 2017 +0200
@@ -8,8 +8,8 @@
 			<span>
 				<a class="msg" tal:attributes="href notification.url">
 					<img class="air air-top-left margin-top-2"
-						 tal:condition="notification.source.avatar"
-						 tal:attributes="src notification.source.avatar" />
+						 tal:condition="'avatar' in notification.source"
+						 tal:attributes="src notification.source['avatar']" />
 					<time tal:content="notification.timestamp"></time>
 					<span class="from" tal:content="notification.source.title"></span>
 					<span class="msg-body" tal:content="notification.message"></span>