link grauphel 0.6.2 download
[grauphel.git] / templates / tag.php
index 68fa8131ea893ceeaec686bf5b969d020655e920..7d5cab172c7e238d948c7710eea7c95074175db1 100644 (file)
@@ -3,14 +3,30 @@
 <?php /** @var $l OC_L10N */ ?>
 <?php $_['appNavigation']->printPage(); ?>
 
-<div id="app-content" class="content">
+<div id="app-content" class="list">
+  <div id="searchresults" class="hidden"></div>
   <h1>Notebook: <?php p($_['tag']); ?></h1>
-  <p class="error">
-     Work in progress: You can't do anything here.
-  </p>
-  <ul>
+
+  <table class="table" id="grauphel-notes">
+   <thead>
+    <tr>
+     <th id="headerTitle">Title</th>
+     <th>Modified</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 style="color: <?php echo p($note['dateColor']); ?>">
+       <?php p(\OCP\Util::formatDate(strtotime($note['last-change-date']))); ?>
+      </td>
+     </tr>
     <?php } ?>
-  </ul>
+
+   </tbody>
+  </table>
 </div>