diff options
author | George Tsiolis <tsiolis.g@gmail.com> | 2018-10-03 11:31:03 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-10-03 11:31:03 +0300 |
commit | 8c1568d9766c674054f90af0816dbeebcdb8e2ce (patch) | |
tree | 83abfaa471bfcfb4173d71649bc2cfcedbfc2b19 /app/views/admin/applications | |
parent | 09f38f8d13b19c48e52ba6771cd26f218feddab2 (diff) |
Add copy to clipboard button for application id and secret
Diffstat (limited to 'app/views/admin/applications')
-rw-r--r-- | app/views/admin/applications/show.html.haml | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/app/views/admin/applications/show.html.haml b/app/views/admin/applications/show.html.haml index 593a6d816e3..e69143abe45 100644 --- a/app/views/admin/applications/show.html.haml +++ b/app/views/admin/applications/show.html.haml @@ -1,4 +1,5 @@ - page_title @application.name, "Applications" + %h3.page-title Application: #{@application.name} @@ -6,23 +7,29 @@ %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 %span.monospace= uri - %tr %td Trusted |