forked from forgejo/forgejo
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:
parent
d0ad7921f8
commit
d2bb8ef503
8 changed files with 104 additions and 81 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue