Release 0.7.1
[grauphel.git] / templates / tag.php
index 4a9501c..4c20378 100644 (file)
@@ -1,4 +1,4 @@
-<link rel="stylesheet" href="<?php p(OC::$server->getURLGenerator()->linkTo('grauphel','grauphel.css')); ?>" type="text/css"/>
+<?php style('grauphel', 'grauphel'); ?>
 
 <?php /** @var $l OC_L10N */ ?>
 <?php $_['appNavigation']->printPage(); ?>
   <table class="table" id="grauphel-notes">
    <thead>
     <tr>
-     <th id="headerTitle">Title</th>
-     <th>Modified</th>
+     <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(OC::$server->getURLGenerator()->linkToRoute('grauphel.gui.note', array('guid' => $note['guid']))); ?>"><?php echo ($note['title']); ?></a>
+       <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']); ?>">
-       <?php p(\OCP\Util::formatDate(strtotime($note['last-change-date']))); ?>
+      <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 } ?>