clone of github.com/decent-newsroom/newsroom
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.
 
 
 
 
 
 

25 lines
1.0 KiB

<div class="comments">
{% for item in list %}
<div class="card comment">
<div class="metadata">
<p><twig:Molecules:UserFromNpub ident="{{ item.pubkey }}" /></p>
<small>{{ item.created_at|date('F j Y') }}</small>
</div>
<div class="card-body">
<twig:Atoms:Content content="{{ item.content }}" />
</div>
{# Display Nostr link previews if links detected #}
{% if commentLinks[item.id] is defined and commentLinks[item.id]|length > 0 %}
<div class="card-footer nostr-previews mt-3">
<div class="preview-container">
{% for link in commentLinks[item.id] %}
<div class="mb-3">
<twig:Molecules:NostrPreview preview="{{ link }}" />
</div>
{% endfor %}
</div>
</div>
{% endif %}
</div>
{% endfor %}
</div>