diff options
Diffstat (limited to 'templates/user/notification/notification.tmpl')
-rw-r--r-- | templates/user/notification/notification.tmpl | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ <a href="{{AppSubUrl}}/notifications?q=read" class="{{if eq .Status 2}}active{{end}} item"> {{.i18n.Tr "notification.read"}} </a> + {{if and (eq .Status 1) (.NotificationUnreadCount)}} + <form action="{{AppSubUrl}}/notifications/purge" method="POST" style="margin-left: auto;"> + {{$.CsrfTokenHtml}} + <button class="ui mini button primary" title='{{$.i18n.Tr "notification.mark_all_as_read"}}'> + <i class="octicon octicon-checklist"></i> + </button> + </form> + {{end}} </div> <div class="ui bottom attached active tab segment"> {{if eq (len .Notifications) 0}} |