mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/posts: remove unavailable first and last links in pool navigator
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
<div class='pool-navigator-container'>
|
||||
<div class='pool-info-wrapper'>
|
||||
<span class='first'>
|
||||
<% if (ctx.canViewPosts && ctx.firstPost) { %>
|
||||
<% if (ctx.canViewPosts && ctx.previousPost && ctx.firstPost) { %>
|
||||
<a class='<%- ctx.linkClass %>' href='<%= ctx.getPostUrl(ctx.firstPost.id, ctx.parameters) %>'>
|
||||
<% } %>
|
||||
«
|
||||
<% if (ctx.canViewPosts && ctx.firstPost) { %>
|
||||
<% if (ctx.canViewPosts && ctx.previousPost && ctx.firstPost) { %>
|
||||
</a>
|
||||
<% } %>
|
||||
</span>
|
||||
@ -37,11 +37,11 @@
|
||||
<% } %>
|
||||
</span>
|
||||
<span class='last'>
|
||||
<% if (ctx.canViewPosts && ctx.lastPost) { %>
|
||||
<% if (ctx.canViewPosts && ctx.nextPost && ctx.lastPost) { %>
|
||||
<a class='<%- ctx.linkClass %>' href='<%= ctx.getPostUrl(ctx.lastPost.id, ctx.parameters) %>'>
|
||||
<% } %>
|
||||
»
|
||||
<% if (ctx.canViewPosts && ctx.lastPost) { %>
|
||||
<% if (ctx.canViewPosts && ctx.nextPost && ctx.lastPost) { %>
|
||||
</a>
|
||||
<% } %>
|
||||
</span>
|
||||
|
Reference in New Issue
Block a user