{layout @layout.html}
{block content}
{var $shortDateFormat = ('short_date_format'|translate)}
<ul class="w3-ul w3-border w3-hoverable" style="width: 50%;">
  {foreach $pages as $page}
  <li class="w3-display-container">
    <a href="{=BASE_URL}/{$page->name}">{$page->name}</a> <time>{$page->updated_at|date:$shortDateFormat} {$page->updated_at|date:'h:i'}</time>
    {var $confirm = ('confirm_delete_page'|translate:$page->name)}
    <a href="{=BASE_URL}/{$page->name}/delete" class="w3-btn w3-red w3-tiny w3-round w3-display-right" onclick="return confirm('{$confirm|noescape}');">{_}delete{/_}</a>
  </li>
  {/foreach}
</ul>
{/block}
