aboutsummaryrefslogtreecommitdiff
path: root/templates/tag.php
blob: 4c20378b8ff7d9bee5333aa52d745ce1c617b066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php style('grauphel', 'grauphel'); ?>

<?php /** @var $l OC_L10N */ ?>
<?php $_['appNavigation']->printPage(); ?>

<div id="app-content" class="list">
  <div id="searchresults" class="hidden"></div>
  <h1>Notebook: <?php p($_['tag']); ?></h1>

  <table class="table" id="grauphel-notes">
   <thead>
    <tr>
     <th id="headerTitle">
      <a href="<?php p($tagUrl); ?>?sortby=title">Title</a>
     </th>
     <th>
      <a href="<?php p($tagUrl); ?>?sortby=date">Modified</a>
     </th>
    </tr>
   </thead>
   <tbody>

    <?php foreach ($_['notes'] as $note) { ?>
     <tr id="note-<?php p($note['guid']); ?>">
      <td>
       <a class="cellclick" href="<?php p($_['urlGen']->linkToRoute('grauphel.gui.note', array('guid' => $note['guid']))); ?>"><?php echo ($note['title']); ?></a>
      </td>
      <td style="color: <?php echo p($note['dateColor']); ?>"
          title="<?php p(date('Y-m-d H:i:s', strtotime($note['last-change-date']))); ?>">
       <?php p($_['date']->formatDate(strtotime($note['last-change-date']))); ?>
      </td>
     </tr>
    <?php } ?>

   </tbody>
  </table>
</div>