2021-04-02 02:37:12 +02:00
<div id="dash-recent">
<div id="recent-list">
<div class="recent-header">
2021-05-24 04:27:33 +02:00
<div class="index-header-left">
Recent
</div>
<div class="index-header-right">
<a href='/dashboard/pages' title="view pages">
<button>
<svg class="page-link">
<use xlink:href="/assets/images/global/sprite.svg#entypo-archive"/>
</svg>
</button>
</a>
<a href='/dashboard/page/add/new' title="add new page">
<button>
<svg class="page-link">
<use xlink:href="/assets/images/global/sprite.svg#entypo-plus"/>
</svg>
</button>
</a>
2021-04-02 02:37:12 +02:00
</div>
</div>
<br/>
2021-04-09 00:27:05 +02:00
{% if data [ "entryCount" ] != 0 %}
2021-04-02 02:37:12 +02:00
{% for page in data [ 'pages' ] %}
2022-02-24 00:48:11 +01:00
{% if page .media [ 0 ] .type == 'mp4' %}
2021-04-02 02:37:12 +02:00
2022-03-14 01:46:42 +01:00
<a href="/dashboard/page/edit/ {{ page .uuid }} " id=" {{ page .uuid }} " class="post-video-link">
2022-02-24 00:48:11 +01:00
<video class="post-video" loop muted autoplay>
<source src=" {{ page .media [ 0 ] .file }} " type="video/mp4">
Sorry, your browser doesn't support embedded videos.
</video>
2022-03-13 22:22:22 +01:00
<label>
{{ page .title }}
</label>
2022-02-24 00:48:11 +01:00
{{ include ( "dash/partials/recent-options.twig" ) }}
</a>
{% else %}
<a href="/dashboard/page/edit/ {{ page .uuid }} " id=" {{ page .uuid }} " class="post-link" style="background: url( {{ page .media [ 0 ] .file }} ) no-repeat center center / cover">
2022-03-13 22:22:22 +01:00
<label>
{{ page .title }}
</label>
2022-02-24 00:48:11 +01:00
{{ include ( "dash/partials/recent-options.twig" ) }}
</a>
{% endif %}
2021-04-02 02:37:12 +02:00
{% endfor %}
{% else %}
There are no pages
{% endif %}
</div>
</div>