mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09: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:
1 parent
d0ad7921f8
commit
d2bb8ef503
8 files changed
+104
-81
No files matched your search
@@ -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