diff options
author | Zach Copley <zach@status.net> | 2010-01-13 21:11:08 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-01-14 02:41:10 +0000 |
commit | 38269a6579789cbdaa309fa08e6cbb196879e7cf (patch) | |
tree | fc9144d950b81e3f973c4b126342c556512e64fa /lib | |
parent | 3aa0d8bea7395b4c67521af4bad5c8936ea194fa (diff) |
Revoke access token UI
Diffstat (limited to 'lib')
-rw-r--r-- | lib/applicationlist.php | 14 |
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'); } } |