summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-01-13 21:11:08 +0000
committerZach Copley <zach@status.net>2010-01-24 16:36:05 -0800
commit9e7f47652d860d7f1e296dd369c4e68814bf2636 (patch)
treef5a86c814d361dec9915d7940452e440a035a6d7 /lib
parentdbcbc2fe7ff0368910a49ed5675b0edc1e2bf18d (diff)
Revoke access token UI
Diffstat (limited to 'lib')
-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');
}
}