Link info and stats page in settings section, update info page
authorChristian Weiske <cweiske@cweiske.de>
Sat, 27 Sep 2014 09:09:20 +0000 (11:09 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Sat, 27 Sep 2014 09:09:20 +0000 (11:09 +0200)
grauphel.css
templates/appnavigation.php
templates/index.php
templates/indexStats.php

index c2594ebc8e34a300e32a1a30d981aabbedf6a9d3..37360db1815c7a9328ed527e302b90098367a23a 100644 (file)
     padding: 1ex;
     font-family: monospace;
 }
+
+.app-grauphel #app-content ul {
+    list-style-type: disc;
+    margin-bottom: 1ex;
+}
+.app-grauphel #app-content li {
+    margin-left: 4ex;
+}
+.app-grauphel #app-content a.lined {
+    text-decoration: underline;
+}
index e50f08328e62be53d01417fb605673f08c7a4da0..8b15238534613da2c69f60380825671e8487d8da 100644 (file)
       <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(OCP\Util::linkToRoute('grauphel.gui.index')); ?>">Info and stats</a></li>
+      <?php if (OCP\User::isLoggedIn()) { ?>
+        <li><a href="<?php p(OCP\Util::linkToRoute('grauphel.gui.tokens')); ?>">Manage access tokens</a></li>
+      <?php } ?>
+      </ul>
     </div>
   </div>
 </div>
index ac6dcfed012227adc2ade604308ab2e2dc9c674c..e59b3811d7ee15e26b009e4864e65aec26c5f548 100644 (file)
@@ -5,16 +5,33 @@
 
 <div id="app-content">
   <div>
-    <h1>Tomboy notes server</h1>
+    <h1>grauphel - Tomboy notes server</h1>
     <p>
-      Use the following sync server URL with tomboy/conboy/tomdroid:
+      <a class="lined" href="http://apps.owncloud.com/content/show.php?action=content&amp;content=166654">Grauphel</a>
+      is a server to store and synchronize notes from Tomboy and compatible clients.
+    </p>
+    <p>
+      Use the following sync server URL:
     </p>
     <pre><?php p($_['apiroot']); ?></pre>
+    <p>
+     Supported clients:
+    </p>
+    <ul>
+      <li><a class="lined" href="https://wiki.gnome.org/Apps/Tomboy">Tomboy</a> (Linux)</li>
+      <li><a class="lined" href="http://conboy.garage.maemo.org/">Conboy</a> (Nokia N900 Maemo)</li>
+      <li><a class="lined" href="https://launchpad.net/tomdroid">Tomdroid</a> (Android)</li>
+    </ul>
     <p>
       You may also explore the API yourself at
-      <a style="text-decoration: underline" href="<?php p($_['apiurl']); ?>">api/1.0</a>.
+      <a class="lined" href="<?php p($_['apiurl']); ?>">api/1.0</a>.
     </p>
   </div>
 
   <?php isset($_['stats']) && $_['stats']->printPage(); ?>
+
+  <hr style="height: 1px; border: none; background-color: grey"/>
+  <p style="text-align: center">
+    Written by <a class="lined" href="http://cweiske.de/">Christian Weiske</a>
+  </p>
 </div>
index 78274da6b9b6bcbe6079f24d75d374e6d5f3d666..435e9d991d2f347fde4003678a35e86ac0a78055 100644 (file)
@@ -1,4 +1,4 @@
-<h2>Stats</h2>
+<h2>Statistics</h2>
 <dl>
  <dt>Number of notes</dt>
  <dd><?php p($_['notes']); ?></dd>