<?php foreach($notifications as $n) { ?>
  <div class="notif_stream_item">
    <?php echo htmlspecialchars('[ '.$n['timestamp'].' ]',ENT_QUOTES,'UTF-8'); ?>
    <a <?php echo MtHaml\Runtime::renderAttributes(array(array('class', ('pull-right' . ' ' . 'ajax-link' . ' ' . 'pad5')), array('href', '#'), array('ajax-href', ($n['dismiss_url']))), 'html5', 'UTF-8'); ?>>
      <div class="icon-trash"></div>
    </a>
    <?php if(user()->checkAccess('notification')) { ?>
      <a <?php echo MtHaml\Runtime::renderAttributes(array(array('class', ('pull-right' . ' ' . 'pad5')), array('href', ($n['view_url']))), 'html5', 'UTF-8'); ?>>
        <div class="icon-bell"></div>
      </a>
    <?php } ?>
    <br />
    <?php echo $n['content']; ?>
  </div>
<?php } ?>
