summaryrefslogtreecommitdiff
path: root/lib/applicationlist.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-01-13 21:11:08 +0000
committerZach Copley <zach@status.net>2010-01-14 02:41:10 +0000
commit38269a6579789cbdaa309fa08e6cbb196879e7cf (patch)
treefc9144d950b81e3f973c4b126342c556512e64fa /lib/applicationlist.php
parent3aa0d8bea7395b4c67521af4bad5c8936ea194fa (diff)
Revoke access token UI
Diffstat (limited to 'lib/applicationlist.php')
-rw-r--r--lib/applicationlist.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/applicationlist.php b/lib/applicationlist.php
index 6eae26135..3abb1f8aa 100644
--- a/lib/applicationlist.php
+++ b/lib/applicationlist.php
@@ -142,7 +142,19 @@ class ApplicationList extends Widget
$this->out->raw($txt);
$this->out->elementEnd('li');
- // XXX: Add revoke access button
+ $this->out->elementStart('li', 'entity_revoke');
+ $this->out->elementStart('form', array('id' => 'form_revoke_app',
+ 'class' => 'form_revoke_app',
+ 'method' => 'POST',
+ 'action' =>
+ common_local_url('oauthconnectionssettings')));
+ $this->out->elementStart('fieldset');
+ $this->out->hidden('id', $this->application->id);
+ $this->out->hidden('token', common_session_token());
+ $this->out->submit('revoke', _('Revoke'));
+ $this->out->elementEnd('fieldset');
+ $this->out->elementEnd('form');
+ $this->out->elementEnd('li');
}
}