summaryrefslogtreecommitdiffstats
path: root/routers/user/notification.go
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2017-01-17 23:18:55 -0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-01-18 09:18:55 +0800
commitd2bb8ef503901b05a34a7d24ddd32c8a5b7524fc (patch)
treec415041f6c70ed024a5a6b8b69e9af0c4e577fd7 /routers/user/notification.go
parentd0ad7921f8681a42ed27b1921ee55e16ef7457d2 (diff)
downloadgitea-d2bb8ef503901b05a34a7d24ddd32c8a5b7524fc.tar.gz
gitea-d2bb8ef503901b05a34a7d24ddd32c8a5b7524fc.zip
Notifications: trying to get a better layout (#660)
* i18n button titles * Improvements on notification page layout * Notification count badge fixes * Make table <tr> clickable * Fix octicon aligment * Fix use of AppSubUrl
Diffstat (limited to 'routers/user/notification.go')
-rw-r--r--routers/user/notification.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/user/notification.go b/routers/user/notification.go
index 74a33f7e2c..7bc2da18db 100644
--- a/routers/user/notification.go
+++ b/routers/user/notification.go
@@ -73,8 +73,8 @@ func Notifications(c *context.Context) {
}
title := c.Tr("notifications")
- if count := len(notifications); count > 0 {
- title = fmt.Sprintf("(%d) %s", count, title)
+ if status == models.NotificationStatusUnread && total > 0 {
+ title = fmt.Sprintf("(%d) %s", total, title)
}
c.Data["Title"] = title
c.Data["Keyword"] = keyword