socia-platform/htwplus — pull request #57 by IvenZ (2014-11-03 15:00:45+00:00)
Title: #49 This commit summarizes all new notifications for a specific post per...

... user.

Classes:
- INotifiable: Instead of just instantiating a new notification in the NotificationService, the INotifiable realizing class decides, how to get a new or already given notification instance
- BaseNotifiable: The default case is just returning a new notification
- NotificationService: Make use of the INotifiable::getNotification() method and create/update the notification depending on a given or not given ID
- Notification: Update timestamp correctly, if notification is modified, use updatedAt in findByAccountId(), add method findByReferenceIdAndRecipientId()
- Post: Return parent instance as reference for notification, if given, otherwise this

Templates:
- Notification/post/profile.scala.html: Add truncated content to notification text for posts on own profile
- Notification/view.scala.html: Improve notification show all template

CSS:
- htwplus.css: Add class "hp-bold" for font-weight bold

Other:
- messages: Improve i18n for notification show all template