fcca7357bc
The upload process changed, so some tweaks needed to me made to the page deletion process, which just marks the page as deleted but keeps the file. Also updated the file manager to properly delete items from the display list. The css for page listings also had to updated [forgot to put that on the list] so the styles for that were updated and the template pages adjusted accordingnly. Also forgot to mention changes to the notification display in the last commit. It's basic as of right now but it will be enhanced as needed.
51 lines
1.4 KiB
Twig
51 lines
1.4 KiB
Twig
<section role="index-header">
|
|
<div role="index-header-left">
|
|
<h1>Recent</h1>
|
|
</div>
|
|
<div role="index-header-right">
|
|
<a href='/dashboard/pages' title="view pages">
|
|
<button>
|
|
<svg role="icon">
|
|
<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 role="icon">
|
|
<use xlink:href="/assets/images/global/sprite.svg#entypo-plus"/>
|
|
</svg>
|
|
</button>
|
|
</a>
|
|
</div>
|
|
</section>
|
|
<section role="index-recent-pages">
|
|
{% if data["entryCount"] != 0 %}
|
|
{% for page in data['pages'] %}
|
|
{% if page.media[0].type == 'mp4' %}
|
|
|
|
<a href="/dashboard/page/edit/{{ page.uuid }}" id="{{ page.uuid }}" class="post-video-link recent-link">
|
|
{{ include("dash/partials/recent-meta.twig") }}
|
|
<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>
|
|
</a>
|
|
|
|
{% else %}
|
|
<a href="/dashboard/page/edit/{{ page.uuid }}" id="{{ page.uuid }}" class="post-link recent-link" style="background: url({{ page.media[0].file }}) no-repeat center center / cover">
|
|
|
|
|
|
{{ include("dash/partials/recent-meta.twig") }}
|
|
</a>
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
{% else %}
|
|
There are no pages
|
|
{% endif %}
|
|
|
|
</section>
|