Commit e4a43582 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Small improvements to CI

parent 20d10b63
......@@ -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)
......
%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
\ No newline at end of file
%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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment