Link to maintainership/funding post
[grauphel.git] / templates / tokens.php
index c79ba7d0004dd28f35a49a5c27f00dae359e1989..9d812ebe52e7a8e1c7d5636c589eb7c56db9e455 100644 (file)
@@ -1,10 +1,9 @@
-<link rel="stylesheet" href="<?php p(OCP\Util::linkTo('grauphel','grauphel.css')); ?>" type="text/css"/>
+<?php style('grauphel', 'grauphel'); ?>
+<?php script('grauphel', 'grauphel'); ?>
 
 <?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="list">
   <div id="searchresults" class="hidden"></div>
   <h1>Manage access tokens</h1>
@@ -27,8 +26,8 @@
        <td><?php p($token->tokenKey); ?></td>
        <td title="<?php p($token->client); ?>"><?php p($_['client']->getNiceName($token->client)); ?></td>
        <td>
-        <?php p(\OCP\Util::formatDate($token->lastuse)); ?>
-        <form method="POST" action="<?php p(OCP\Util::linkToRoute('grauphel.token.delete', array('username' => $_['username'], 'tokenKey' => $token->tokenKey))); ?>">
+        <?php p($_['date']->formatDate($token->lastuse)); ?>
+        <form method="POST" action="<?php p(OC::$server->getURLGenerator()->linkToRoute('grauphel.token.delete', array('username' => $_['username'], 'tokenKey' => $token->tokenKey))); ?>">
            <input type="hidden" name="delete" value="1" />
            <button type="submit" class="icon-delete delete action"
                    original-title="Delete"