--- 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>