55 lines
2.0 KiB
HTML
55 lines
2.0 KiB
HTML
<li class="block">
|
|
{% if image %}
|
|
<span class="primary icon thumb active color {{ color }}"
|
|
onclick="event.stopPropagation(); Preview_ajaxHttpShow('{{ url.image|echapJS }}')"
|
|
style="background-image: url({{ image }})">
|
|
<i class="material-symbols">image</i>
|
|
</span>
|
|
{% else %}
|
|
<span class="primary icon bubble gray">
|
|
{% if icon %}
|
|
<img src="{{ icon }}" onerror="this.remove()"/>
|
|
{% else %}
|
|
<i class="material-symbols">link</i>
|
|
{% endif %}
|
|
</span>
|
|
{% endif %}
|
|
|
|
<span class="control icon gray active" onclick="event.stopPropagation(); MovimUtils.openInNew('{{ url.url|echapJS }}')">
|
|
<i class="material-symbols">open_in_new</i>
|
|
</span>
|
|
|
|
<div>
|
|
{% if url.type == 'video' or url.type == 'audio' %}
|
|
<p class="line">
|
|
{% if url.type == 'audio' %}
|
|
<i class="material-symbols">equalizer</i> {{ __('chats.audio') }}
|
|
{% else %}
|
|
<i class="material-symbols">local_movies</i> {{ __('chats.video') }}
|
|
{% endif %}
|
|
{% if size %}
|
|
<span class="second">•</span>
|
|
<span class="second">{{ size }}</span>
|
|
{% endif %}
|
|
</p>
|
|
{% elif url.title %}
|
|
<p class="line two" title="{{ url.title }}">
|
|
{{ url.title }}
|
|
</p>
|
|
{% endif %}
|
|
<p class="line two" title="{% if url.description %}{{ url.description }}{% endif %}">
|
|
{% if url.provider_name %}
|
|
{{ url.provider_name }}
|
|
{% endif %}
|
|
{% if url.author_name %}
|
|
<span class="second">•</span>
|
|
<span class="second">{{ url.author_name }}</span>
|
|
{% endif %}
|
|
{% if url.description %}
|
|
<span class="second">•</span>
|
|
<span class="second">{{ url.description }}</span>
|
|
{% endif %}
|
|
</p>
|
|
</div>
|
|
</li>
|