You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
1.4 KiB

{% extends 'base.html.twig' %}
{% block body %}
<div class="author-profile">
{% include 'partial/author_profile_header.html.twig' with {
author: author,
npub: npub,
show_nip05: true,
profile_websites: profile_websites,
profile_nip05: profile_nip05,
profile_payment_links: profile_payment_links,
} only %}
<hr class="author-profile__divider" />
<twig:Organisms:CardList :list="articles" class="article-list"></twig:Organisms:CardList>
{% if pagination is defined and pagination.last_page > 1 %}
{% set _page = pagination.page|default(1) %}
{% set _last = pagination.last_page|default(1) %}
<nav class="category-pagination mt-3" aria-label="Author articles pagination">
{% if _page > 1 %}
<a class="btn btn-outline-secondary" href="{{ path('author-profile', _page > 2 ? { npub: npub, page: _page - 1 } : { npub: npub }) }}">Newer</a>
{% endif %}
<span class="mx-2 text-subtle">Page {{ _page }} of {{ _last }}</span>
{% if _page < _last %}
<a class="btn btn-outline-secondary" href="{{ path('author-profile', { npub: npub, page: _page + 1 }) }}">Older</a>
{% endif %}
</nav>
{% endif %}
</div>
{% endblock %}
{% block aside %}
{% endblock %}