New home for Tomdroid
[grauphel.git] / templates / tag.php
1 <?php style('grauphel', 'grauphel'); ?>
2
3 <?php /** @var $l OC_L10N */ ?>
4 <?php $_['appNavigation']->printPage(); ?>
5
6 <div id="app-content" class="list">
7   <div id="searchresults" class="hidden"></div>
8   <h1>Notebook: <?php p($_['tag']); ?></h1>
9
10   <table class="table" id="grauphel-notes">
11    <thead>
12     <tr>
13      <th id="headerTitle">
14       <a href="<?php p($tagUrl); ?>?sortby=title">Title</a>
15      </th>
16      <th>
17       <a href="<?php p($tagUrl); ?>?sortby=date">Modified</a>
18      </th>
19     </tr>
20    </thead>
21    <tbody>
22
23     <?php foreach ($_['notes'] as $note) { ?>
24      <tr id="note-<?php p($note['guid']); ?>">
25       <td>
26        <a class="cellclick" href="<?php p($_['urlGen']->linkToRoute('grauphel.gui.note', array('guid' => $note['guid']))); ?>"><?php echo ($note['title']); ?></a>
27       </td>
28       <td style="color: <?php echo p($note['dateColor']); ?>"
29           title="<?php p(date('Y-m-d H:i:s', strtotime($note['last-change-date']))); ?>">
30        <?php p($_['date']->formatDate(strtotime($note['last-change-date']))); ?>
31       </td>
32      </tr>
33     <?php } ?>
34
35    </tbody>
36   </table>
37 </div>