2021-04-02 02:37:12 +02:00
<div id="dash-recent">
<div id="recent-list">
<div class="recent-header">
<h3>Recent</h3>
<div class="index-menu">
2021-04-07 23:09:40 +02:00
<a href='/dashboard/pages'>View Pages</a>
2021-04-02 02:37:12 +02:00
.
<a href='/dashboard/page/add/new'>Create Page</a>
</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' ] %}
<a href="/dashboard/page/edit/ {{ page .uuid }} " id=" {{ page .uuid }} " class="post-link" style="background: url( {{ page .feature }} ) no-repeat center center / cover">
<div>
<label>
{{ page .title }}
</label>
{% if page .menu == 'true' %}
{% set menu = "true" %}
{% else %}
{% set menu = "false" %}
{% endif %}
{% if page .published == 'true' %}
{% set published = "true" %}
{% else %}
{% set published = "false" %}
{% endif %}
{% if page .featured == 'true' %}
{% set featured = "true" %}
{% else %}
{% set featured = "false" %}
{% endif %}
<div id="options">
<span class="item-options" data-active=" {{ menu }} ">
Menu Item</span>
<span class="item-options" data-active=" {{ published }} ">
Published</span>
<span class="item-options" data-active=" {{ featured }} ">
Featured</span>
</div>
2021-04-10 22:44:43 +02:00
<span> {{ page .updated }} </span>
2021-04-02 02:37:12 +02:00
</div>
</a>
{% endfor %}
{% else %}
There are no pages
{% endif %}
</div>
</div>