* make navbar template more readable

* fix download button
This commit is contained in:
maxbachmann 2019-05-05 23:38:31 +02:00 committed by L3D
parent e3196c7ad5
commit c4171feff0
3 changed files with 24 additions and 11 deletions

View file

@ -1,11 +1,8 @@
{% if this.video_url
%}<div class="fit">
<div class="fit">
<youtube-embed embed="{{ this.video_url }}"></youtube-embed>
<noscript>
<div class="youtube">
<iframe src='https://invidio.us/embed/{{ this.video_url }}?rel=0' frameborder='0' allow="autoplay; encrypted-media" allowfullscreen scrolling="no"></iframe>
</div>
</noscript>
</div>
<a class="button" href="https://www.youtube.com/watch?v={{ this.video_url }}{% if this.alt %}&gl={{ this.alt }}&hl={{ this.alt }}{% endif %}" target="_blank" rel="noopener">{%
if bag('translate', this.alt, 'directytlink') %}{{ bag('translate', this.alt, 'directytlink') }}{%
else %}Direkt zum YouTube-Video{% endif %}</a>{% endif %}{% if this.video
%} <a class="button" href="{{ this.video|url }}" download>{%
if bag('translate', this.alt, 'directlink') %}{{ bag('translate', this.alt, 'directlink') }}{%
else %}Download Video{% endif %}</a>{% endif %}
<br/>

View file

@ -38,7 +38,15 @@
<br/>
{% else %}
{% if post.video_is_embeded %}{% for blk in post.video_embeded.blocks %}
{{ blk }} <br/>
{% if blk.video_url %}
{{ blk }} <br/>
<a class="button" href="https://www.youtube.com/watch?v={{ blk.video_url }}{% if post.alt %}&gl={{ post.alt }}&hl={{ post.alt }}{% endif %}" target="_blank" rel="noopener">{%
if bag('translate', post.alt, 'directlink') %}{{ bag('translate', post.alt, 'directlink') }}{%
else %}{{post.url}}{% endif %}</a>{% endif %}{% if blk.video
%} <a class="button" href="{{ blk.video|url }}" download>{%
if bag('translate', post.alt, 'directlink') %}{{ bag('translate', post.alt, 'directlink') }}{%
else %}Download Video{% endif %}</a>{% endif %}
<br/>
{% endfor %}{%
endif %} {% if post.project %}
<div class="lightgallery" class="row alt">{%

View file

@ -25,7 +25,15 @@
<section id="content">
{{ post.body }}
{% if post.video_is_embeded %}{% for blk in post.video_embeded.blocks %}
{{ blk }} <br/>
{% if blk.video_url %}
{{ blk }} <br/>
<a class="button" href="https://www.youtube.com/watch?v={{ blk.video_url }}{% if post.alt %}&gl={{ post.alt }}&hl={{ post.alt }}{% endif %}" target="_blank" rel="noopener">{%
if bag('translate', post.alt, 'directlink') %}{{ bag('translate', post.alt, 'directlink') }}{%
else %}{{post.url}}{% endif %}</a>{% endif %}{% if blk.video
%} <a class="button" href="{{ blk.video|url }}" download>{%
if bag('translate', post.alt, 'directlink') %}{{ bag('translate', post.alt, 'directlink') }}{%
else %}Download Video{% endif %}</a>{% endif %}
<br/>
{% endfor %}{%
endif %}
{% if post.project %}