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

applications.html.haml « profiles « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cb24e4a3dde0f8cd581a2ccc4d0e7477a04a3267 (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
44
45
46
47
%h3.page-title
  OAuth2

%fieldset.oauth-applications
  %legend Your applications
  %p= link_to 'New Application', new_oauth_application_path, class: 'btn btn-success'
  - if @applications.any?
    %table.table.table-striped
      %thead
        %tr
          %th Name
          %th Callback URL
          %th Clients
          %th
          %th
      %tbody
        - @applications.each do |application|
          %tr{:id => "application_#{application.id}"}
            %td= link_to application.name, oauth_application_path(application)
            %td
              - application.redirect_uri.split.each do |uri|
                %div= uri
            %td= application.access_tokens.count
            %td= link_to 'Edit', edit_oauth_application_path(application), class: 'btn btn-link btn-small'
            %td= render 'doorkeeper/applications/delete_form', application: application

%fieldset.oauth-authorized-applications.prepend-top-20
  %legend Authorized applications

  - if @authorized_tokens.any?
    %table.table.table-striped
      %thead
        %tr
          %th Name
          %th Authorized At
          %th Scope
          %th
      %tbody
        - @authorized_tokens.each do |token|
          - application = token.application
          %tr{:id => "application_#{application.id}"}
            %td= application.name
            %td= token.created_at
            %td= token.scopes
            %td= render 'doorkeeper/authorized_applications/delete_form', application: application
  - else
    %p.light You dont have any authorized applications