make search work in ownCloud 8.1
[grauphel.git] / templates / tag.php
index 8c7eecc..7d5cab1 100644 (file)
@@ -4,13 +4,14 @@
 <?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>Title</th>
-     <th>Last change</th>
+     <th id="headerTitle">Title</th>
+     <th>Modified</th>
     </tr>
    </thead>
    <tbody>
     <?php foreach ($_['notes'] as $note) { ?>
      <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 p($note['title']); ?></a>
+       <a class="cellclick" href="<?php p(OCP\Util::linkToRoute('grauphel.gui.note', array('guid' => $note['guid']))); ?>"><?php echo ($note['title']); ?></a>
       </td>
-      <td>
+      <td style="color: <?php echo p($note['dateColor']); ?>">
+       <?php p(\OCP\Util::formatDate(strtotime($note['last-change-date']))); ?>
       </td>
      </tr>
     <?php } ?>