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 ...@@ -17,7 +17,7 @@ class Admin::ApplicationsController < Admin::ApplicationController
def create def create
@application = Doorkeeper::Application.new(application_params) @application = Doorkeeper::Application.new(application_params)
if @application.save if @application.save
flash[:notice] = I18n.t(:notice, scope: [:doorkeeper, :flash, :applications, :create]) flash[:notice] = I18n.t(:notice, scope: [:doorkeeper, :flash, :applications, :create])
redirect_to admin_application_url(@application) 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' %p= link_to 'New Application', new_admin_application_path, class: 'btn btn-success'
%table.table.table-striped %table.table.table-striped
%thead %thead
%tr %tr
%th Name %th Name
%th Callback URL %th Callback URL
%th Clients
%th %th
%th %th
%tbody %tbody
...@@ -12,5 +17,6 @@ ...@@ -12,5 +17,6 @@
%tr{:id => "application_#{application.id}"} %tr{:id => "application_#{application.id}"}
%td= link_to application.name, admin_application_path(application) %td= link_to application.name, admin_application_path(application)
%td= application.redirect_uri %td= application.redirect_uri
%td= application.access_tokens.count
%td= link_to 'Edit', edit_admin_application_path(application), class: 'btn btn-link' %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
\ No newline at end of file
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
Projects Projects
= nav_link(controller: :users) do = nav_link(controller: :users) do
= link_to admin_users_path do = link_to admin_users_path do
%i.fa.fa-users %i.fa.fa-user
%span %span
Users Users
= nav_link(controller: :groups) do = nav_link(controller: :groups) do
...@@ -48,6 +48,6 @@ ...@@ -48,6 +48,6 @@
= nav_link(controller: :applications) do = nav_link(controller: :applications) do
= link_to admin_applications_path do = link_to admin_applications_path do
%i.fa.fa-unlock-alt %i.fa.fa-cloud
%span %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