Small improvements to CI
This commit is contained in:
parent
20028523b5
commit
a81081aa72
3 changed files with 12 additions and 6 deletions
|
@ -17,7 +17,7 @@ class Admin::ApplicationsController < Admin::ApplicationController
|
|||
|
||||
def create
|
||||
@application = Doorkeeper::Application.new(application_params)
|
||||
|
||||
|
||||
if @application.save
|
||||
flash[:notice] = I18n.t(:notice, scope: [:doorkeeper, :flash, :applications, :create])
|
||||
redirect_to admin_application_url(@application)
|
||||
|
|
|
@ -1,10 +1,15 @@
|
|||
%h3.page-title Your applications
|
||||
%h3.page-title
|
||||
System OAuth applications
|
||||
%p.light
|
||||
System OAuth application does not belong to certain user and can be managed only by admins
|
||||
%hr
|
||||
%p= link_to 'New Application', new_admin_application_path, class: 'btn btn-success'
|
||||
%table.table.table-striped
|
||||
%thead
|
||||
%tr
|
||||
%th Name
|
||||
%th Callback URL
|
||||
%th Clients
|
||||
%th
|
||||
%th
|
||||
%tbody
|
||||
|
@ -12,5 +17,6 @@
|
|||
%tr{:id => "application_#{application.id}"}
|
||||
%td= link_to application.name, admin_application_path(application)
|
||||
%td= application.redirect_uri
|
||||
%td= application.access_tokens.count
|
||||
%td= link_to 'Edit', edit_admin_application_path(application), class: 'btn btn-link'
|
||||
%td= render 'delete_form', application: application
|
||||
%td= render 'delete_form', application: application
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
Projects
|
||||
= nav_link(controller: :users) do
|
||||
= link_to admin_users_path do
|
||||
%i.fa.fa-users
|
||||
%i.fa.fa-user
|
||||
%span
|
||||
Users
|
||||
= nav_link(controller: :groups) do
|
||||
|
@ -48,6 +48,6 @@
|
|||
|
||||
= nav_link(controller: :applications) do
|
||||
= link_to admin_applications_path do
|
||||
%i.fa.fa-unlock-alt
|
||||
%i.fa.fa-cloud
|
||||
%span
|
||||
Application
|
||||
Applications
|
||||
|
|
Loading…
Reference in a new issue