Get rid of deprecated API usage:
[grauphel.git] / templates / appnavigation.php
index 78b4358bbaf6d467ff392388b03295a9ebdab119..72e30b6cefff27d360b5268afa6af6fcd85cda09 100644 (file)
@@ -1,7 +1,7 @@
 <div id="app-navigation">
   <ul>
-    <?php foreach ($_['navigationItems'] as $item) { ?>
-      <li data-id="<?php p($item['id']) ?>" class="nav-<?php p($item['id']) ?>"><a href="<?php p(isset($item['href']) ? $item['href'] : '#') ?>"><?php p($item['name']);?></a></li>
+    <?php foreach ($_['tags'] as $tag) { ?>
+      <li data-id="<?php p($tag['id']) ?>" <?php $tag['selected'] && print ' class="selected"'; ?>><a href="<?php p(isset($tag['href']) ? $tag['href'] : '#') ?>"><?php p($tag['name']);?></a></li>
     <?php } ?>
   </ul>
 
       <button class="settings-button" data-apps-slide-toggle="#app-settings-content"></button>
     </div>
     <div id="app-settings-content" style="display: none;">
-      <h2><?php p($l->t('Tomboy note server'));?></h2>
-      <em><?php print_unescaped($l->t('Use the following sync server URL with tomboy/conboy/tomdroid:')); ?></em>
-      <div><input id="resturl" type="text" readonly="readonly" value="<?php p($_['apiroot']); ?>" /></div>
+      <ul>
+        <li><a href="<?php p(OC::$server->getURLGenerator()->linkToRoute('grauphel.gui.index')); ?>">Info and stats</a></li>
+      <?php if (\OC::$server->getUserSession()->isLoggedIn()) { ?>
+        <li><a href="<?php p(OC::$server->getURLGenerator()->linkToRoute('grauphel.gui.tokens')); ?>">Manage access tokens</a></li>
+        <li><a href="<?php p(OC::$server->getURLGenerator()->linkToRoute('grauphel.gui.database')); ?>">Manage database</a></li>
+      <?php } ?>
+      </ul>
     </div>
   </div>
 </div>