From 7ec6cddd27f36f50f06669b208674feb0dc19535 Mon Sep 17 00:00:00 2001 From: Sasha Varlamov Date: Thu, 7 Dec 2017 12:52:57 +0700 Subject: Add 'mark all read' option to notifications (#3097) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add 'mark all read' option to notifications Signed-off-by: Sasha Varlamov * Fix exported comment Signed-off-by: Sasha Varlamov * Format method comments Signed-off-by: Sasha Varlamov * Fix exported comment Signed-off-by: Sasha Varlamov Format method comments Signed-off-by: Sasha Varlamov Tests for reactions (#3083) * Unit tests for reactions * Fix import order Signed-off-by: Lauris Bukšis-Haberkorns Fix reaction possition when there is attachments (#3099) Refactor notifications swap function * Accept change to drop beforeupdate call * Update purge notifications error message for consistency * Drop unnecessary check for mark all as read button * Remove debugging comment --- templates/user/notification/notification.tmpl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'templates/user') diff --git a/templates/user/notification/notification.tmpl b/templates/user/notification/notification.tmpl index da6bd07d2a..3c30bbe305 100644 --- a/templates/user/notification/notification.tmpl +++ b/templates/user/notification/notification.tmpl @@ -14,6 +14,14 @@ {{.i18n.Tr "notification.read"}} + {{if and (eq .Status 1) (.NotificationUnreadCount)}} +
+ {{$.CsrfTokenHtml}} + +
+ {{end}}
{{if eq (len .Notifications) 0}} -- cgit v1.2.3