summaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-01-18 02:31:26 +0800
committerAntoine GIRARD <sapk@users.noreply.github.com>2020-01-17 19:31:26 +0100
commitb641c68feebaf46c5702c47fe50526cd614450c8 (patch)
tree587f846e39ffacb65b0a3ac96fd16cd10df6143d /templates/user
parent2f3a602b3cb71f5efbb2ad8c3a0f92581849debd (diff)
downloadgitea-b641c68feebaf46c5702c47fe50526cd614450c8.tar.gz
gitea-b641c68feebaf46c5702c47fe50526cd614450c8.zip
Improve notification pager (#9821)
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/notification/notification.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/user/notification/notification.tmpl b/templates/user/notification/notification.tmpl
index 5b34604fb7..beeac0181e 100644
--- a/templates/user/notification/notification.tmpl
+++ b/templates/user/notification/notification.tmpl
@@ -88,6 +88,7 @@
{{$.CsrfTokenHtml}}
<input type="hidden" name="notification_id" value="{{$notification.ID}}" />
<input type="hidden" name="status" value="read" />
+ <input type="hidden" name="page" value="{{$.Page.Paginater.Current}}" />
<button class="ui mini button" title='{{$.i18n.Tr "notification.mark_as_read"}}'>
<i class="octicon octicon-check"></i>
</button>
@@ -97,6 +98,7 @@
{{$.CsrfTokenHtml}}
<input type="hidden" name="notification_id" value="{{$notification.ID}}" />
<input type="hidden" name="status" value="unread" />
+ <input type="hidden" name="page" value="{{$.Page.Paginater.Current}}" />
<button class="ui mini button" title='{{$.i18n.Tr "notification.mark_as_unread"}}'>
<i class="octicon octicon-bell"></i>
</button>