diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-08-22 22:16:16 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-08-22 22:16:16 +0200 |
| commit | 3e3dfcc65e13be5a49423bb90fc12e67f6b613dd (patch) | |
| tree | 450ed5b99de648f2a9b86720ecb82fba62cfe50c /templates | |
| parent | cd37bde4ef0747a11c1221e937027fe17f2894fe (diff) | |
| download | grauphel-3e3dfcc65e13be5a49423bb90fc12e67f6b613dd.tar.gz grauphel-3e3dfcc65e13be5a49423bb90fc12e67f6b613dd.zip | |
show tags and note titles in the notebook
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/appnavigation.php | 4 | ||||
| -rw-r--r-- | templates/index.php | 31 | ||||
| -rw-r--r-- | templates/tag.php | 13 |
3 files changed, 16 insertions, 32 deletions
diff --git a/templates/appnavigation.php b/templates/appnavigation.php index 78b4358..e50f083 100644 --- a/templates/appnavigation.php +++ b/templates/appnavigation.php @@ -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']) ?>"><a href="<?php p(isset($tag['href']) ? $tag['href'] : '#') ?>"><?php p($tag['name']);?></a></li> <?php } ?> </ul> diff --git a/templates/index.php b/templates/index.php index bc51f4b..ac6dcfe 100644 --- a/templates/index.php +++ b/templates/index.php @@ -1,33 +1,4 @@ -<style type="text/css"> -.app-grauphel #app-content { - box-sizing: border-box; - padding: 2ex; -} - -.app-grauphel #app-content h1 { - font-weight: bold; - font-size: 2em; - margin-bottom: 1ex; -} -.app-grauphel #app-content h2 { - font-weight: bold; - font-size: 150%; - margin-bottom: 1ex; - margin-top: 2ex; -} -.app-grauphel #app-content dt { - font-weight: bold; -} -.app-grauphel #app-content dd { - margin-left: 3ex; -} -.app-grauphel #app-content pre { - margin: 1em; - background-color: #DDD; - padding: 1ex; - font-family: monospace; -} -</style> +<link rel="stylesheet" href="<?php p(OCP\Util::linkTo('grauphel','grauphel.css')); ?>" type="text/css"/> <?php /** @var $l OC_L10N */ ?> <?php $_['appNavigation']->printPage(); ?> diff --git a/templates/tag.php b/templates/tag.php new file mode 100644 index 0000000..ea80ed0 --- /dev/null +++ b/templates/tag.php @@ -0,0 +1,13 @@ +<link rel="stylesheet" href="<?php p(OCP\Util::linkTo('grauphel','grauphel.css')); ?>" type="text/css"/> + +<?php /** @var $l OC_L10N */ ?> +<?php $_['appNavigation']->printPage(); ?> + +<div id="app-content"> + <h1>Notebook: <?php p($_['tag']); ?></h1> + <ul> + <?php foreach ($_['notes'] as $note) { ?> + <li data-id="<?php p($note['guid']); ?>"><a href="#"><?php p($note['title']); ?></a></li> + <?php } ?> + </ul> +</div> |
