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.3 KiB
33 lines
1.3 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) %} |
|
{% set _prev_url = _page > 1 ? path('author-profile', _page > 2 ? { npub: npub, page: _page - 1 } : { npub: npub }) : null %} |
|
{% set _next_url = _page < _last ? path('author-profile', { npub: npub, page: _page + 1 }) : null %} |
|
{% include 'components/Molecules/Pagination.html.twig' with { |
|
page: _page, |
|
last_page: _last, |
|
prev_url: _prev_url, |
|
next_url: _next_url, |
|
aria_label: 'Author articles pagination', |
|
} only %} |
|
{% endif %} |
|
</div> |
|
{% endblock %} |
|
|
|
{% block aside %} |
|
{% endblock %}
|
|
|