Browse Source

fix page condition

main
ghost 10 months ago
parent
commit
e41b9dbe94
  1. 4
      templates/default/server/index.html.twig

4
templates/default/server/index.html.twig

@ -167,7 +167,7 @@ @@ -167,7 +167,7 @@
<path d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm10.5 10V4a.5.5 0 0 0-.832-.374l-4.5 4a.5.5 0 0 0 0 .748l4.5 4A.5.5 0 0 0 10.5 12"/>
</svg>
{% endif %}
{% if request.get('sort') != 'online' or request.get('page') < server.pagination.online %}
{% if request.get('sort') != 'online' or request.get('page') ? request.get('page') : 1 < server.pagination.online %}
<a rel="nofollow" href="{{
path(
'server_index',
@ -251,7 +251,7 @@ @@ -251,7 +251,7 @@
<path d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm10.5 10V4a.5.5 0 0 0-.832-.374l-4.5 4a.5.5 0 0 0 0 .748l4.5 4A.5.5 0 0 0 10.5 12"/>
</svg>
{% endif %}
{% if request.get('sort') != 'players' or request.get('page') < server.pagination.players %}
{% if request.get('sort') != 'players' or request.get('page') ? request.get('page') : 1 < server.pagination.players %}
<a rel="nofollow" href="{{
path(
'server_index',

Loading…
Cancel
Save