Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-05-18 16:16:50 +0300
committerLukas Reschke <lukas@statuscode.ch>2017-05-18 21:49:08 +0300
commit88afd8b22466e4dfab8e136f81440b160ee84acb (patch)
tree8ee6844ef288fc736659bb6778fc1a72ae63957d /apps/oauth2/templates
parent9d91ebf8e022821db8af15cb4bc0463df7146491 (diff)
Cleanup code
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/oauth2/templates')
-rw-r--r--apps/oauth2/templates/admin.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/oauth2/templates/admin.php b/apps/oauth2/templates/admin.php
index 9c09499add3..d2e34e08db8 100644
--- a/apps/oauth2/templates/admin.php
+++ b/apps/oauth2/templates/admin.php
@@ -45,12 +45,15 @@ $clients = $_['clients'];
</tr>
</thead>
<tbody>
- <?php foreach ($clients as $client) { ?>
+ <?php
+ $imageUrl = $urlGenerator->imagePath('core', 'actions/toggle.svg');
+ foreach ($clients as $client) {
+ ?>
<tr>
<td><?php p($client->getName()); ?></td>
<td><?php p($client->getRedirectUri()); ?></td>
<td><code><?php p($client->getClientIdentifier()); ?></code></td>
- <td data-value="<?php p($client->getSecret()); ?>"><code>****</code><img class='show-oauth-credentials' src="<?php p($urlGenerator->imagePath('core', 'actions/toggle.svg'));?>"/></td>
+ <td data-value="<?php p($client->getSecret()); ?>"><code>****</code><img class='show-oauth-credentials' src="<?php p($imageUrl); ?>"/></td>
<td>
<form id="form-inline" class="delete" action="<?php p($urlGenerator->linkToRoute('oauth2.Settings.deleteClient', ['id' => $client->getId()])); ?>" method="POST">
<input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />