summaryrefslogtreecommitdiff
path: root/app/views/admin/applications/show.html.haml
blob: e69143abe450105da53c1fd2928686a71d30dc15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
- page_title @application.name, "Applications"

%h3.page-title
  Application: #{@application.name}

.table-holder.oauth-application-show
  %table.table
    %tr
      %td
        = _('Application ID')
      %td
        .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')
      %td
        .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')
      %td
        - @application.redirect_uri.split.each do |uri|
          %div
            %span.monospace= uri
    %tr
      %td
        Trusted
      %td
        = @application.trusted? ? 'Y' : 'N'

    = render "shared/tokens/scopes_list", token: @application

.form-actions
  = link_to 'Edit', edit_admin_application_path(@application), class: 'btn btn-primary wide float-left'
  = render 'delete_form', application: @application, submit_btn_css: 'btn btn-danger prepend-left-10'