Download note as XML and JSON
[grauphel.git] / templates / gui-note.php
index a7e05874e18bebd3210dcd4d6199de796150323e..fb2d741c2381803378e954f397388558760fab9c 100644 (file)
@@ -6,7 +6,11 @@
 <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>
+ <div class="actions">
+  <a class="button" href="<?php echo p($_['links']['json']); ?>">JSON</a>
+  <a class="button" href="<?php echo p($_['links']['xml']); ?>">XML</a>
+ </div>
+ <h1><?php echo ($_['note']->title); ?></h1>
  <p class="muted">
   Last modified:
   <?php p(\OCP\Util::formatDate(strtotime($_['note']->{'last-change-date'}))); ?>