summaryrefslogtreecommitdiffstats
path: root/settings/templates
diff options
context:
space:
mode:
authorTom Needham <tom@owncloud.com>2012-07-30 16:41:07 +0000
committerTom Needham <tom@owncloud.com>2012-07-30 16:41:07 +0000
commit91daf54d7c1ad009843d28a7791e67f4dc37f56d (patch)
treee0c3f11c6e707e07e256aa03878f62c6c642f5c0 /settings/templates
parent2f84a8d74627cb20cfae1ac4c004af393b8b07de (diff)
downloadnextcloud-server-91daf54d7c1ad009843d28a7791e67f4dc37f56d.tar.gz
nextcloud-server-91daf54d7c1ad009843d28a7791e67f4dc37f56d.zip
Check if required apps are installed
Diffstat (limited to 'settings/templates')
-rw-r--r--settings/templates/oauth-required-apps.php19
-rw-r--r--settings/templates/oauth.php6
2 files changed, 22 insertions, 3 deletions
diff --git a/settings/templates/oauth-required-apps.php b/settings/templates/oauth-required-apps.php
new file mode 100644
index 00000000000..d4fce54c59c
--- /dev/null
+++ b/settings/templates/oauth-required-apps.php
@@ -0,0 +1,19 @@
+<?php
+/**
+ * Copyright (c) 2012, Tom Needham <tom@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or later.
+ * See the COPYING-README file.
+ */
+?>
+<div id="oauth-request" class="guest-container">
+ <p><strong><?php echo $_['consumer']['name'].'</strong> '.$_['message']; ?></p>
+ <ul>
+ <?php
+ // Foreach requested scope
+ foreach($_['requiredapps'] as $requiredapp){
+ echo '<li>'.$requiredapp.'</li>';
+ }
+ ?>
+ </ul>
+ <a href="<?php echo OC::$WEBROOT; ?>" id="back-home" class="button">Back to ownCloud</a>
+</div>
diff --git a/settings/templates/oauth.php b/settings/templates/oauth.php
index b9fa67d8a35..053a8aee6d3 100644
--- a/settings/templates/oauth.php
+++ b/settings/templates/oauth.php
@@ -6,7 +6,7 @@
*/
?>
<div id="oauth-request" class="guest-container">
- <p><strong><?php echo $_['consumer']['name']; ?></strong> is requesting permission to read, write, modify and delete data from the following apps:</p>
+ <p><strong><?php echo $_['consumer']['name']; ?></strong> is requesting your permission to read, write, modify and delete data from the following apps:</p>
<ul>
<?php
// Foreach requested scope
@@ -15,6 +15,6 @@
}
?>
</ul>
- <button>Allow</button>
- <button>Disallow</button>
+ <a href="#" class="button">Allow</a>
+ <a href="#" class="button">Disallow</a>
</div>