Collapse multiple identical posts in mention notification.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 15 Jul 2011 09:16:55 +0000 (11:16 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 15 Jul 2011 09:16:55 +0000 (11:16 +0200)
This resolves #207.

src/main/resources/templates/notify/mentionNotification.html

index 087fc2e..10e9ad3 100644 (file)
@@ -4,7 +4,7 @@
 </div>
 <div class="text">
        <%= Notification.Mention.Text|l10n|html>
-       <%foreach posts post>
+       <%foreach posts post|unique>
                <div class="hidden post-id"><%post.id|html></div>
                <a class="link-<% post.id|html>" href="viewPost.html?post=<% post.id|html>"><% post.sone.niceName|html></a><%notlast>,<%/notlast><%last>.<%/last>
        <%/foreach>