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.
69 lines
2.5 KiB
69 lines
2.5 KiB
{% extends 'base.html.twig' %} |
|
|
|
{% block body %} |
|
|
|
{% if author.image is defined %} |
|
<img src="{{ author.image }}" class="avatar" alt="{{ author.name }}" onerror="this.style.display = 'none'" /> |
|
{% endif %} |
|
|
|
<h1><twig:Atoms:NameOrNpub :author="author" :npub="npub"></twig:Atoms:NameOrNpub></h1> |
|
{% if author.about is defined %} |
|
<p class="lede"> |
|
{{ author.about|markdown_to_html|linkify|mentionify }} |
|
</p> |
|
{% endif %} |
|
|
|
{# {% if relays|length > 0 %}#} |
|
{# {% for rel in relays %}#} |
|
{# <p>{{ rel }}</p>#} |
|
{# {% endfor %}#} |
|
{# {% endif %}#} |
|
|
|
|
|
{# {% if app.user and app.user.userIdentifier is same as npub %}#} |
|
{# <div id="invoice-component" class="p-4 bg-gray-100 rounded-lg">#} |
|
{# <h3 class="text-xl font-semibold mb-4">Purchase Search Credits</h3>#} |
|
|
|
{# <div class="mb-4">#} |
|
{# <p>Amount: {{ amount ?? 0 }} sats</p>#} |
|
{# <p>Status: <span id="payment-status">Pending</span></p>#} |
|
{# </div>#} |
|
|
|
{# #}{# You can access the width and height via the matrix #} |
|
{# #}{# Replace the string with the invoice #} |
|
{# {% set qrCode = qr_code_result('My QR Code') %}#} |
|
{# <img src="{{ qrCode.dataUri }}" width="{{ qrCode.matrix.outerSize }}" alt="invoice-qr" />#} |
|
|
|
{# <br>#} |
|
{# <button id="check-payment" class="px-4 py-2 bg-blue-500 text-white rounded">Check Payment Status</button>#} |
|
|
|
{# <script>#} |
|
{# document.getElementById('check-payment').addEventListener('click', async () => {#} |
|
{# const response = await fetch('/payment-status/{{ payment_hash ?? '' }}');#} |
|
{# const data = await response.json();#} |
|
|
|
{# if (data.status === 'paid') {#} |
|
{# document.getElementById('payment-status').innerText = 'Paid';#} |
|
{# } else {#} |
|
{# document.getElementById('payment-status').innerText = 'Pending';#} |
|
{# }#} |
|
{# });#} |
|
{# </script>#} |
|
{# </div>#} |
|
{# {% endif %}#} |
|
|
|
{# {% if nzine %}#} |
|
{# <a href="{{ path('nzine_view', {npub: author.npub}) }}">View as N-Zine</a>#} |
|
|
|
{# <h2>List of indices</h2>#} |
|
{# {% for i in idx %}#} |
|
{# {{ i.title }}#} |
|
{# {% endfor %}#} |
|
{# {% endif %}#} |
|
|
|
<twig:Organisms:CardList :list="articles" class="article-list"></twig:Organisms:CardList> |
|
{% endblock %} |
|
|
|
{% block aside %} |
|
{# <twig:Organisms:ZineList :nzines="nzines" />#} |
|
{% endblock %}
|
|
|