diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-10-23 23:07:01 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-10-23 23:07:01 +0200 |
| commit | 8ee6bfe97633d31c6b89cebbc434837eca04d6dd (patch) | |
| tree | 3d346e6d6b18e608813924b784ebda1d6520beef /templates | |
| parent | a6e6dc9e303ccddf1cb6e699f5e43295af361e0f (diff) | |
| download | grauphel-8ee6bfe97633d31c6b89cebbc434837eca04d6dd.tar.gz grauphel-8ee6bfe97633d31c6b89cebbc434837eca04d6dd.zip | |
note preview
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/gui-note.php | 17 | ||||
| -rw-r--r-- | templates/tag.php | 28 |
2 files changed, 38 insertions, 7 deletions
diff --git a/templates/gui-note.php b/templates/gui-note.php new file mode 100644 index 0000000..a7e0587 --- /dev/null +++ b/templates/gui-note.php @@ -0,0 +1,17 @@ +<link rel="stylesheet" href="<?php p(OCP\Util::linkTo('grauphel','grauphel.css')); ?>" type="text/css"/> + +<?php /** @var $l OC_L10N */ ?> +<?php $_['appNavigation']->printPage(); ?> + +<script type="text/javascript" src="<?php p(OCP\Util::linkTo('grauphel','js/grauphel.js')); ?>"></script> + +<div id="app-content" class="content"> + <h1><?php p($_['note']->title); ?></h1> + <p class="muted"> + Last modified: + <?php p(\OCP\Util::formatDate(strtotime($_['note']->{'last-change-date'}))); ?> + </p> + <div class="note-content"> + <?php echo $_['note-content']; ?> + </div> +</div> diff --git a/templates/tag.php b/templates/tag.php index 68fa813..8c7eecc 100644 --- a/templates/tag.php +++ b/templates/tag.php @@ -3,14 +3,28 @@ <?php /** @var $l OC_L10N */ ?> <?php $_['appNavigation']->printPage(); ?> -<div id="app-content" class="content"> +<div id="app-content" class="list"> <h1>Notebook: <?php p($_['tag']); ?></h1> - <p class="error"> - Work in progress: You can't do anything here. - </p> - <ul> + + <table class="table" id="grauphel-notes"> + <thead> + <tr> + <th>Title</th> + <th>Last change</th> + </tr> + </thead> + <tbody> + <?php foreach ($_['notes'] as $note) { ?> - <li data-id="<?php p($note['guid']); ?>"><a href="#"><?php p($note['title']); ?></a></li> + <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 p($note['title']); ?></a> + </td> + <td> + </td> + </tr> <?php } ?> - </ul> + + </tbody> + </table> </div> |
