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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-07-02 12:53:31 +0300
committerDouwe Maan <douwe@gitlab.com>2015-07-02 12:53:31 +0300
commitcd5e79e98b7f08a6fa6999d25e158073fee03048 (patch)
tree6b044412b1285a8bf2e98c52e13c3607f3ad27e8 /app/views/doorkeeper/authorized_applications
parent2cbf45282168938696867072cb3e35131bc44a93 (diff)
Correctly show anonymous authorized applications under Profile > Applications.
Diffstat (limited to 'app/views/doorkeeper/authorized_applications')
-rw-r--r--app/views/doorkeeper/authorized_applications/_delete_form.html.haml9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/views/doorkeeper/authorized_applications/_delete_form.html.haml b/app/views/doorkeeper/authorized_applications/_delete_form.html.haml
index 4bba72167e3..bfa95ce79a7 100644
--- a/app/views/doorkeeper/authorized_applications/_delete_form.html.haml
+++ b/app/views/doorkeeper/authorized_applications/_delete_form.html.haml
@@ -1,4 +1,9 @@
- submit_btn_css ||= 'btn btn-link btn-remove'
-= form_tag oauth_authorized_application_path(application) do
+- if defined?(token)
+ - path = oauth_authorized_application_path(0, token_id: token)
+- else
+ - path = oauth_authorized_application_path(application)
+
+= form_tag path do
%input{:name => "_method", :type => "hidden", :value => "delete"}/
- = submit_tag 'Revoke', onclick: "return confirm('Are you sure?')", class: 'btn btn-link btn-remove btn-sm' \ No newline at end of file
+ = submit_tag 'Revoke', onclick: "return confirm('Are you sure?')", class: 'btn btn-link btn-remove btn-sm'