mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
more keyboard shortcuts
This commit is contained in:
parent
70768dadff
commit
8045b4fad5
2 changed files with 3 additions and 3 deletions
|
@ -82,7 +82,7 @@
|
||||||
</p>
|
</p>
|
||||||
{% if post.type == POST_TYPE_LINK %}
|
{% if post.type == POST_TYPE_LINK %}
|
||||||
<p><small><a href="{{ post.url }}" rel="nofollow ugc" target="_blank" class="post_link">{{ post.url|shorten_url }}
|
<p><small><a href="{{ post.url }}" rel="nofollow ugc" target="_blank" class="post_link">{{ post.url|shorten_url }}
|
||||||
<img src="/static/images/external_link_black.svg" class="external_link_icon" alt="External link" /></a>
|
<img src="/static/images/external_link_black.svg" class="external_link_icon" alt="External link" class="post_link" /></a>
|
||||||
</small></p>
|
</small></p>
|
||||||
{% if 'youtube.com' in post.url %}
|
{% if 'youtube.com' in post.url %}
|
||||||
<div style="padding-bottom: 56.25%; position: relative;"><iframe style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;" src="https://www.youtube.com/embed/{{ post.youtube_embed() }}?rel=0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen" width="100%" height="100%" frameborder="0"></iframe></div>
|
<div style="padding-bottom: 56.25%; position: relative;"><iframe style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;" src="https://www.youtube.com/embed/{{ post.youtube_embed() }}?rel=0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen" width="100%" height="100%" frameborder="0"></iframe></div>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<div class="thumbnail">
|
<div class="thumbnail">
|
||||||
{% if post.type == POST_TYPE_LINK %}
|
{% if post.type == POST_TYPE_LINK %}
|
||||||
<a href="{{ post.url }}" rel="nofollow ugc" target="_blank" aria-label="{{ _('Read article') }}"><img src="{{ post.image.thumbnail_url() }}"
|
<a href="{{ post.url }}" rel="nofollow ugc" target="_blank" aria-label="{{ _('Read article') }}"><img src="{{ post.image.thumbnail_url() }}"
|
||||||
alt="{{ post.image.alt_text if post.image.alt_text else '' }}" height="50" class="post_link" /></a>
|
alt="{{ post.image.alt_text if post.image.alt_text else '' }}" height="50" /></a>
|
||||||
{% elif post.type == POST_TYPE_IMAGE %}
|
{% elif post.type == POST_TYPE_IMAGE %}
|
||||||
{% if post.image_id %}
|
{% if post.image_id %}
|
||||||
<a href="{{ post.image.view_url() }}" rel="nofollow ugc" target="_blank"><img src="{{ post.image.thumbnail_url() }}"
|
<a href="{{ post.image.view_url() }}" rel="nofollow ugc" target="_blank"><img src="{{ post.image.thumbnail_url() }}"
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
{% if post.url and 'youtube.com' in post.url %}
|
{% if post.url and 'youtube.com' in post.url %}
|
||||||
<span class="fe fe-video"></span>
|
<span class="fe fe-video"></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{{ post.url }}" rel="nofollow ugc" target="_blank">
|
<a href="{{ post.url }}" rel="nofollow ugc" target="_blank" class="post_link">
|
||||||
<img src="/static/images/external_link_black.svg" class="external_link_icon" alt="External link" />
|
<img src="/static/images/external_link_black.svg" class="external_link_icon" alt="External link" />
|
||||||
</a>
|
</a>
|
||||||
<span class="domain_link">(<a href="/d/{{ post.domain_id }}">{{ post.domain.name }}</a>)</span>
|
<span class="domain_link">(<a href="/d/{{ post.domain_id }}">{{ post.domain.name }}</a>)</span>
|
||||||
|
|
Loading…
Add table
Reference in a new issue