diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-09-27 11:09:20 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-09-27 11:09:20 +0200 |
| commit | 497af90eabe1e4a89c1ecfe0ebb9c874dd67b648 (patch) | |
| tree | ba7042c6f4986dfd6d19ed1377728c82963b2749 | |
| parent | 9a1ac6227c65296a4751c3e601cc1eb47398a77e (diff) | |
| download | grauphel-497af90eabe1e4a89c1ecfe0ebb9c874dd67b648.tar.gz grauphel-497af90eabe1e4a89c1ecfe0ebb9c874dd67b648.zip | |
Link info and stats page in settings section, update info page
| -rw-r--r-- | grauphel.css | 11 | ||||
| -rw-r--r-- | templates/appnavigation.php | 9 | ||||
| -rw-r--r-- | templates/index.php | 23 | ||||
| -rw-r--r-- | templates/indexStats.php | 2 |
4 files changed, 38 insertions, 7 deletions
diff --git a/grauphel.css b/grauphel.css index c2594eb..37360db 100644 --- a/grauphel.css +++ b/grauphel.css @@ -26,3 +26,14 @@ 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; +} diff --git a/templates/appnavigation.php b/templates/appnavigation.php index e50f083..8b15238 100644 --- a/templates/appnavigation.php +++ b/templates/appnavigation.php @@ -10,9 +10,12 @@ <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> diff --git a/templates/index.php b/templates/index.php index ac6dcfe..e59b381 100644 --- a/templates/index.php +++ b/templates/index.php @@ -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&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> diff --git a/templates/indexStats.php b/templates/indexStats.php index 78274da..435e9d9 100644 --- a/templates/indexStats.php +++ b/templates/indexStats.php @@ -1,4 +1,4 @@ -<h2>Stats</h2> +<h2>Statistics</h2> <dl> <dt>Number of notes</dt> <dd><?php p($_['notes']); ?></dd> |
