Register Javascript files via API
[grauphel.git] / templates / tag.php
index a8752a44a8a76df57651cd72ed0f4426ee552ad0..ee5f592da8ed906decf5cf90be4ab39d3ada6bff 100644 (file)
@@ -1,9 +1,10 @@
-<link rel="stylesheet" href="<?php p(OCP\Util::linkTo('grauphel','grauphel.css')); ?>" type="text/css"/>
+<?php style('grauphel', 'grauphel'); ?>
 
 <?php /** @var $l OC_L10N */ ?>
 <?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">
@@ -18,7 +19,7 @@
     <?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 echo ($note['title']); ?></a>
+       <a class="cellclick" href="<?php p(OC::$server->getURLGenerator()->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']))); ?>