add: paginate notifications/requests pages
This commit is contained in:
parent
4be98ead53
commit
1ac64d34ed
5 changed files with 74 additions and 6 deletions
|
@ -54,7 +54,9 @@
|
|||
(text "{{ text \"notifs:label.mark_all_as_unread\" }}")))))))
|
||||
(div
|
||||
("class" "card tertiary flex flex-col gap-4")
|
||||
(text "{% for notification in notifications %} {{ components::notification(notification=notification) }} {% endfor %}"))))
|
||||
(text "{% for notification in notifications %} {{ components::notification(notification=notification) }} {% endfor %}")))
|
||||
|
||||
(text "{{ components::pagination(page=page, items=notifications|length, key=\"&id=\", value=profile.id) }}"))
|
||||
|
||||
(script
|
||||
(text "async function mark_all_as_read(read) {
|
||||
|
|
|
@ -128,7 +128,9 @@
|
|||
("class" "red quaternary")
|
||||
("onclick" "trigger('me::ip_block_question', ['{{ question[0].id }}'])")
|
||||
(text "{{ text \"auth:action.ip_block\" }}")))))
|
||||
(text "{% endfor %}"))))
|
||||
(text "{% endfor %}")))
|
||||
|
||||
(text "{{ components::pagination(page=page, items=requests|length, key=\"&id=\", value=profile.id) }}"))
|
||||
|
||||
(script
|
||||
(text "async function remove_request(id, linked_asset) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue