You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
2.1 KiB
Twig
53 lines
2.1 KiB
Twig
<div id="dash-recent">
|
|
<div id="recent-list">
|
|
<div class="recent-header">
|
|
<h3>Recent</h3>
|
|
<div class="index-menu">
|
|
<a href='/dashboard/pages'>View Pages</a>
|
|
.
|
|
<a href='/dashboard/page/add/new'>Create Page</a>
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
{% if data["total"] != 0 %}
|
|
{% 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>
|
|
<span>{{ page.prettyDate }}</span>
|
|
|
|
</div>
|
|
</a>
|
|
{% endfor %}
|
|
{% else %}
|
|
There are no pages
|
|
{% endif %}
|
|
|
|
</div>
|
|
</div> |