logs.phtml 1011 B

12345678910111213141516171819202122232425
  1. <div class="post content">
  2. <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.back_to_rss_feeds'); ?></a>
  3. <h1><?php echo _t('index.log'); ?></h1>
  4. <form method="post" action="<?php echo _url('index', 'logs'); ?>"><p>
  5. <input type="hidden" name="clearLogs" />
  6. <button type="submit" class="btn"><?php echo _t('index.log.clear'); ?></button>
  7. </p></form>
  8. <?php $items = $this->logsPaginator->items(); ?>
  9. <?php if (!empty($items)) { ?>
  10. <div class="logs">
  11. <?php $this->logsPaginator->render('logs_pagination.phtml', 'page'); ?>
  12. <?php foreach ($items as $log) { ?>
  13. <div class="log <?php echo $log->level(); ?>"><span class="date"><?php echo @date('Y-m-d H:i:s', @strtotime($log->date())); ?></span><?php echo htmlspecialchars($log->info(), ENT_NOQUOTES, 'UTF-8'); ?></div>
  14. <?php } ?>
  15. <?php $this->logsPaginator->render('logs_pagination.phtml','page'); ?>
  16. </div>
  17. <?php } else { ?>
  18. <p class="alert alert-warn"><?php echo _t('index.log.empty'); ?></p>
  19. <?php } ?>
  20. </div>