diff options
author | George Tsiolis <tsiolis.g@gmail.com> | 2018-10-03 08:31:03 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-10-03 08:31:03 +0000 |
commit | 8c1568d9766c674054f90af0816dbeebcdb8e2ce (patch) | |
tree | 83abfaa471bfcfb4173d71649bc2cfcedbfc2b19 /app/views/doorkeeper | |
parent | 09f38f8d13b19c48e52ba6771cd26f218feddab2 (diff) | |
download | gitlab-ce-8c1568d9766c674054f90af0816dbeebcdb8e2ce.tar.gz |
Add copy to clipboard button for application id and secret
Diffstat (limited to 'app/views/doorkeeper')
-rw-r--r-- | app/views/doorkeeper/applications/show.html.haml | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/app/views/doorkeeper/applications/show.html.haml b/app/views/doorkeeper/applications/show.html.haml index bb76ac6d5f6..776bbc36ec2 100644 --- a/app/views/doorkeeper/applications/show.html.haml +++ b/app/views/doorkeeper/applications/show.html.haml @@ -10,18 +10,25 @@ %table.table %tr %td - = _('Application Id') + = _('Application ID') %td - %code#application_id= @application.uid + .clipboard-group + .input-group + %input.label.label-monospace{ id: "application_id", type: "text", autocomplete: 'off', value: @application.uid, readonly: true } + .input-group-append + = clipboard_button(target: '#application_id', title: _("Copy ID to clipboard"), class: "btn btn btn-default") %tr %td - = _('Secret:') + = _('Secret') %td - %code#secret= @application.secret - + .clipboard-group + .input-group + %input.label.label-monospace{ id: "secret", type: "text", autocomplete: 'off', value: @application.secret, readonly: true } + .input-group-append + = clipboard_button(target: '#application_id', title: _("Copy secret to clipboard"), class: "btn btn btn-default") %tr %td - = _('Callback url') + = _('Callback URL') %td - @application.redirect_uri.split.each do |uri| %div |