highlight selected tag
[grauphel.git] / templates / tag.php
index ea80ed051a1030899f2639d75873894e21eefcbd..850b03450289f7ea992ca7046368b36d497fa26d 100644 (file)
@@ -3,11 +3,28 @@
 <?php /** @var $l OC_L10N */ ?>
 <?php $_['appNavigation']->printPage(); ?>
 
-<div id="app-content">
+<div id="app-content" class="list">
   <h1>Notebook: <?php p($_['tag']); ?></h1>
-  <ul>
+
+  <table class="table" id="grauphel-notes">
+   <thead>
+    <tr>
+     <th>Title</th>
+     <th>Last change</th>
+    </tr>
+   </thead>
+   <tbody>
+
     <?php foreach ($_['notes'] as $note) { ?>
-      <li data-id="<?php p($note['guid']); ?>"><a href="#"><?php p($note['title']); ?></a></li>
+     <tr id="note-<?php p($note['guid']); ?>">
+      <td>
+       <a class="cellclick" href="<?php p(OCP\Util::linkToRoute('grauphel.gui.note', array('guid' => $note['guid']))); ?>"><?php echo ($note['title']); ?></a>
+      </td>
+      <td>
+      </td>
+     </tr>
     <?php } ?>
-  </ul>
+
+   </tbody>
+  </table>
 </div>