mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
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
This commit is contained in:
committed by
Lunny Xiao
parent
d0ad7921f8
commit
d2bb8ef503
@@ -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
|
||||
|
Reference in New Issue
Block a user