diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-11-12 16:33:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-12 16:33:34 +0800 |
commit | bb6879d339d83e598a3d9f0974734cd591394369 (patch) | |
tree | bc2f40210a5c7a7f30b620fb7fd1efc6ca7ffc07 /templates/user | |
parent | 555b1f658198449670c77839bccf010e33ca74db (diff) | |
download | gitea-bb6879d339d83e598a3d9f0974734cd591394369.tar.gz gitea-bb6879d339d83e598a3d9f0974734cd591394369.zip |
Improve notification (#8835)
* Improve notifications
* batch load user
* Update notification only when read
* Fix reorder
* fix lint
* fix test
* fix lint
* make function meaningful
* fix comment
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/notification/notification.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/user/notification/notification.tmpl b/templates/user/notification/notification.tmpl index 3c30bbe305..5b34604fb7 100644 --- a/templates/user/notification/notification.tmpl +++ b/templates/user/notification/notification.tmpl @@ -34,11 +34,11 @@ <table class="ui unstackable striped very compact small selectable table"> <tbody> {{range $notification := .Notifications}} - {{$issue := $notification.GetIssue}} - {{$repo := $notification.GetRepo}} + {{$issue := $notification.Issue}} + {{$repo := $notification.Repository}} {{$repoOwner := $repo.MustOwner}} - <tr data-href="{{AppSubUrl}}/{{$repoOwner.Name}}/{{$repo.Name}}/issues/{{$issue.Index}}"> + <tr data-href="{{$notification.HTMLURL}}"> <td class="collapsing"> {{if eq $notification.Status 3}} <i class="blue octicon octicon-pin"></i> @@ -61,7 +61,7 @@ {{end}} </td> <td class="eleven wide"> - <a class="item" href="{{AppSubUrl}}/{{$repoOwner.Name}}/{{$repo.Name}}/issues/{{$issue.Index}}"> + <a class="item" href="{{$notification.HTMLURL}}"> #{{$issue.Index}} - {{$issue.Title}} </a> </td> |