Rewrite remoteStorage settings, remove block echo

This commit is contained in:
Bart Visscher 2012-08-12 22:28:57 +02:00
parent ab8e7f1da3
commit 73b1b68fff
1 changed files with 11 additions and 17 deletions

View File

@ -1,10 +1,6 @@
<fieldset class="personalblock"> <fieldset class="personalblock">
<?php <img src="<?php echo image_path('remoteStorage', 'remoteStorage.png') ?>" style="width:16px">
echo '<img src="'.image_path('remoteStorage', 'remoteStorage.png').'" style="width:16px"> ' <strong><?php echo $l->t('remoteStorage') ?></strong> user address: <?php echo OCP\USER::getUser().'@'.$_SERVER['SERVER_NAME'] ?> (<a href="http://unhosted.org/">more info</a>)
.'<strong>'.$l->t('remoteStorage').'</strong> user address: '
.OCP\USER::getUser().'@'.$_SERVER['SERVER_NAME']
.' (<a href="http://unhosted.org/">more info</a>)';
?>
<p><em>Apps that currently have access to your ownCloud:</em></p> <p><em>Apps that currently have access to your ownCloud:</em></p>
<script> <script>
function revokeToken(token) { function revokeToken(token) {
@ -14,15 +10,13 @@
} }
</script> </script>
<ul> <ul>
<?php <?php foreach(OC_remoteStorage::getAllTokens() as $token => $details) { ?>
foreach(OC_remoteStorage::getAllTokens() as $token => $details) { <li onmouseover="$('#revoke_<?php echo $token ?>').show();" onmouseout="$('#revoke_<?php echo $token ?>').hide();">
echo '<li onmouseover="' <strong><?php echo $details['appUrl'] ?></strong>: <?php echo $details['categories'] ?>
.'document.getElementById(\'revoke_'.$token.'\').style.display=\'inline\';"' <a href="#" title="Revoke" class="action" style="display:none" id="revoke_<?php echo $token ?>" onclick="revokeToken('<?php echo $token ?>');$(this).hide();">
.'onmouseout="document.getElementById(\'revoke_'.$token.'\').style.display=\'none\';"' <img src="<?php echo OCP\Util::imagePath('core', 'actions/delete.svg') ?>">
.'> <strong>'.$details['appUrl'].'</strong>: '.$details['categories'] </a>
.' <a href="#" title="Revoke" class="action" style="display:none" id="revoke_'.$token.'" onclick="' </li>
.'revokeToken(\''.$token.'\');this.parentNode.style.display=\'none\';"' <?php } ?>
.'><img src="'.OCP\Util::imagePath('core', 'actions/delete.svg').'"></a></li>'."\n"; </ul>
}
?></ul>
</fieldset> </fieldset>