add mail image to notifications portlet

This commit is contained in:
hplattner 2017-07-20 10:48:56 +02:00
parent dc75d56951
commit fb924fdc03
2 changed files with 9 additions and 3 deletions

View file

@ -1003,7 +1003,7 @@ class NodeTraverser(ItemTraverser):
try: try:
obj = super(NodeTraverser, self).publishTraverse(request, name) obj = super(NodeTraverser, self).publishTraverse(request, name)
except NotFound, e: except NotFound, e:
logger.warn('NodeTraverser: NotFound: URL = %s, name = %r' % logger.warn('NodeTraverser: NotFound: URL = %s, name = %r' %
(request.URL, name)) (request.URL, name))
raise raise
return obj return obj

View file

@ -57,11 +57,17 @@
<div tal:condition="python:numNews == 1"> <div tal:condition="python:numNews == 1">
<a i18n:translate="" <a i18n:translate=""
tal:attributes="href macro/url"> tal:attributes="href macro/url">
<span i18n:name="numNews" tal:content="numNews" /> new notification</a></div> <span i18n:name="numNews" tal:content="numNews" /> new notification</a>
<img src="/++resource++cybertools.icons/email.png"
alt="new notifications" />
</div>
<div tal:condition="python:numNews > 1"> <div tal:condition="python:numNews > 1">
<a i18n:translate="" <a i18n:translate=""
tal:attributes="href macro/url"> tal:attributes="href macro/url">
<span i18n:name="numNews" tal:content="numNews" /> new notifications</a></div> <span i18n:name="numNews" tal:content="numNews" /> new notifications</a>
<img src="/++resource++cybertools.icons/email.png"
alt="new notifications" />
</div>
</metal:actions> </metal:actions>