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.
27 lines
1.3 KiB
27 lines
1.3 KiB
<div class="nostr-preview" |
|
data-controller="nostr-preview" |
|
data-nostr-preview-identifier-value="{{ preview.identifier }}" |
|
data-nostr-preview-type-value="{{ preview.type }}" |
|
data-nostr-preview-decoded-value="{{ preview.data|json_encode }}" |
|
data-nostr-preview-full-match-value="{{ preview.full_match }}"> |
|
<div data-nostr-preview-target="container"> |
|
<div class="text-center my-2"> |
|
<div class="spinner-border spinner-border-sm text-secondary" role="status"></div> |
|
<span class="ms-2">Loading preview...</span> |
|
</div> |
|
{% if preview.full_match is defined and preview.full_match %} |
|
<div class="nostr-preview-link mt-2"> |
|
<a href="{{ preview.full_match }}" target="_blank" rel="noopener noreferrer">{{ preview.full_match }}</a> |
|
</div> |
|
{% endif %} |
|
{% if preview.data is not null %} |
|
<div class="nostr-preview-details mt-2"> |
|
{# Example: show kind if available #} |
|
{% if preview.data.kind is defined %} |
|
<span class="badge bg-info">Kind: {{ preview.data.kind }}</span> |
|
{% endif %} |
|
{# Add more event details here as needed #} |
|
</div> |
|
{% endif %} |
|
</div> |
|
</div>
|
|
|