forked from leftypol/leftypol
view_ip.html: add links to previous and next cursors
This commit is contained in:
parent
82463bb720
commit
b9081be4ac
1 changed files with 13 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
||||||
{% set notes_on_record = 'note' ~ (notes|count != 1 ? 's' : '') ~ ' on record' %}
|
{% set notes_on_record = 'note' ~ (notes|count != 1 ? 's' : '') ~ ' on record' %}
|
||||||
<legend>{{ notes|count }} {% trans notes_on_record %}</legend>
|
<legend>{{ notes|count }} {% trans notes_on_record %}</legend>
|
||||||
</legend>
|
</legend>
|
||||||
|
|
||||||
{% if notes and notes|length > 0 %}
|
{% if notes and notes|length > 0 %}
|
||||||
<table class="modlog">
|
<table class="modlog">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if mod|hasPermission(config.mod.create_notes) %}
|
{% if mod|hasPermission(config.mod.create_notes) %}
|
||||||
<form action="" method="post" style="margin:0">
|
<form action="" method="post" style="margin:0">
|
||||||
<input type="hidden" name="token" value="{{ security_token }}">
|
<input type="hidden" name="token" value="{{ security_token }}">
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
<fieldset id="bans">
|
<fieldset id="bans">
|
||||||
{% set bans_on_record = 'ban' ~ (bans|count != 1 ? 's' : '') ~ ' on record' %}
|
{% set bans_on_record = 'ban' ~ (bans|count != 1 ? 's' : '') ~ ' on record' %}
|
||||||
<legend>{{ bans|count }} {% trans bans_on_record %}</legend>
|
<legend>{{ bans|count }} {% trans bans_on_record %}</legend>
|
||||||
|
|
||||||
{% for ban in bans %}
|
{% for ban in bans %}
|
||||||
<form action="" method="post" style="text-align:center">
|
<form action="" method="post" style="text-align:center">
|
||||||
<input type="hidden" name="token" value="{{ security_token }}">
|
<input type="hidden" name="token" value="{{ security_token }}">
|
||||||
|
@ -206,10 +206,19 @@
|
||||||
<legend>
|
<legend>
|
||||||
<a href="?/{{ config.board_path|sprintf(board_posts.board.uri) }}{{ config.file_index }}">
|
<a href="?/{{ config.board_path|sprintf(board_posts.board.uri) }}{{ config.file_index }}">
|
||||||
{{ config.board_abbreviation|sprintf(board_posts.board.uri) }}
|
{{ config.board_abbreviation|sprintf(board_posts.board.uri) }}
|
||||||
-
|
-
|
||||||
{{ board_posts.board.title|e }}
|
{{ board_posts.board.title|e }}
|
||||||
</a>
|
</a>
|
||||||
</legend>
|
</legend>
|
||||||
{{ board_posts.posts|join('<hr>') }}
|
{{ board_posts.posts|join('<hr>') }}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
<div class="pages" style="margin-left: 50%">
|
||||||
|
<a href="?/IP/{{ ip }}">[Page 1]</a>
|
||||||
|
{% if cursor_prev %}
|
||||||
|
<a href="?/IP/{{ ip }}/cursor/{{ cursor_prev }}">[Previous Page]</a>
|
||||||
|
{% endif %}
|
||||||
|
{% if cursor_next %}
|
||||||
|
<a href="?/IP/{{ ip }}/cursor/{{ cursor_next }}">[Next Page]</a>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue