2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Applications"
|
2017-06-22 10:47:50 -04:00
|
|
|
- @content_class = "limit-container-width" unless fluid_layout
|
2015-10-19 05:19:45 -04:00
|
|
|
|
2016-03-11 23:38:25 -05:00
|
|
|
.row.prepend-top-default
|
2017-06-22 10:47:50 -04:00
|
|
|
.col-lg-4.profile-settings-sidebar
|
2016-03-11 23:38:25 -05:00
|
|
|
%h4.prepend-top-0
|
|
|
|
= page_title
|
|
|
|
%p
|
|
|
|
- if user_oauth_applications?
|
|
|
|
Manage applications that can use GitLab as an OAuth provider,
|
|
|
|
and applications that you've authorized to use your account.
|
|
|
|
- else
|
|
|
|
Manage applications that you've authorized to use your account.
|
2017-06-22 10:47:50 -04:00
|
|
|
.col-lg-8
|
2016-03-11 23:38:25 -05:00
|
|
|
- if user_oauth_applications?
|
|
|
|
%h5.prepend-top-0
|
|
|
|
Add new application
|
|
|
|
= render 'form', application: @application
|
|
|
|
%hr
|
|
|
|
- if user_oauth_applications?
|
|
|
|
.oauth-applications
|
|
|
|
%h5
|
|
|
|
Your applications (#{@applications.size})
|
|
|
|
- if @applications.any?
|
|
|
|
.table-responsive
|
|
|
|
%table.table
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Callback URL
|
|
|
|
%th Clients
|
|
|
|
%th.last-heading
|
|
|
|
%tbody
|
|
|
|
- @applications.each do |application|
|
2016-12-26 05:47:16 -05:00
|
|
|
%tr{ id: "application_#{application.id}" }
|
2016-03-11 23:38:25 -05:00
|
|
|
%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_oauth_application_path(application), class: "btn btn-transparent append-right-5" do
|
|
|
|
%span.sr-only
|
|
|
|
Edit
|
|
|
|
= icon('pencil')
|
|
|
|
= render 'delete_form', application: application, small: true
|
|
|
|
- else
|
2016-04-25 09:42:17 -04:00
|
|
|
.settings-message.text-center
|
2016-03-11 23:38:25 -05:00
|
|
|
You don't have any applications
|
|
|
|
.oauth-authorized-applications.prepend-top-20.append-bottom-default
|
|
|
|
- if user_oauth_applications?
|
|
|
|
%h5
|
|
|
|
Authorized applications (#{@authorized_tokens.size})
|
|
|
|
|
|
|
|
- if @authorized_tokens.any?
|
|
|
|
.table-responsive
|
|
|
|
%table.table.table-striped
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Authorized At
|
|
|
|
%th Scope
|
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
- @authorized_apps.each do |app|
|
|
|
|
- token = app.authorized_tokens.order('created_at desc').first
|
2016-12-26 05:47:16 -05:00
|
|
|
%tr{ id: "application_#{app.id}" }
|
2016-03-11 23:38:25 -05:00
|
|
|
%td= app.name
|
|
|
|
%td= token.created_at
|
|
|
|
%td= token.scopes
|
2016-04-12 22:38:14 -04:00
|
|
|
%td= render 'doorkeeper/authorized_applications/delete_form', application: app
|
2016-03-11 23:38:25 -05:00
|
|
|
- @authorized_anonymous_tokens.each do |token|
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
Anonymous
|
2018-04-11 14:26:37 -04:00
|
|
|
.form-text.text-muted
|
2016-03-11 23:38:25 -05:00
|
|
|
%em Authorization was granted by entering your username and password in the application.
|
|
|
|
%td= token.created_at
|
|
|
|
%td= token.scopes
|
2016-03-23 09:59:54 -04:00
|
|
|
%td= render 'doorkeeper/authorized_applications/delete_form', token: token
|
2016-03-11 23:38:25 -05:00
|
|
|
- else
|
2016-04-25 09:42:17 -04:00
|
|
|
.settings-message.text-center
|
2016-03-11 23:38:25 -05:00
|
|
|
You don't have any authorized applications
|