diff --git a/static/css/core-ui.css b/static/css/core-ui.css index 499cfbef7..496edfaa3 100644 --- a/static/css/core-ui.css +++ b/static/css/core-ui.css @@ -891,6 +891,11 @@ .cor-title-link a { color: white; + text-decoration: none !important; +} + +.cor-title-link a.back-link .avatar { + margin-right: 6px; } .cor-title-link a.back-link:before { diff --git a/static/js/pages/manage-application.js b/static/js/pages/manage-application.js index 804696de8..5d3a2b5ad 100644 --- a/static/js/pages/manage-application.js +++ b/static/js/pages/manage-application.js @@ -3,7 +3,16 @@ * Page for managing an organization-defined OAuth application. */ angular.module('quayPages').config(['pages', function(pages) { - pages.create('manage-application', 'manage-application.html', ManageApplicationCtrl); + pages.create('manage-application', 'manage-application.html', ManageApplicationCtrl, { + 'newLayout': true, + 'title': 'Manage Application {{ application.name }}', + 'description': 'Manage an OAuth application' + }, ['layout']); + + pages.create('manage-application', 'old-manage-application.html', ManageApplicationCtrl, { + 'title': 'Manage Application {{ application.name }}', + 'description': 'Manage an OAuth application' + }, ['old-layout']); }]); function ManageApplicationCtrl($scope, $routeParams, $rootScope, $location, $timeout, OAuthService, ApiService, UserService, Config) { diff --git a/static/partials/manage-application.html b/static/partials/manage-application.html index d4101c5a1..2906a4b8f 100644 --- a/static/partials/manage-application.html +++ b/static/partials/manage-application.html @@ -1,150 +1,140 @@ -
-
- -
-
- -
-
-
- -

{{ application.name || '(Untitled)' }}

-

- - {{ organization.name }} -

-
-
+
+
+
+ + + + {{ organization.name }} + + + + {{ application.name }} +
-
+
Warning: There is no OAuth Redirect setup for this application. Please enter it in the Settings tab.
- -
- - +
+
+ + + - -
-
- -
-
-
- - -
The name of the application that is displayed to users
-
+ + + -
- - -
The URL to which the application will link in the authorization view
-
+ + + -
- - -
The user friendly description of the application
-
+ + + +
-
- - -
An e-mail address representing the Avatar for the application. See above for the icon.
-
+
-
- - -
Allowed prefix for the application's OAuth redirection/callback URLs
-
- -
- - -
- -
- - -
-
-
-
-
Deleting an application cannot be undone. Any existing users of your application will break!. Here be dragons!
- -
-
-
-
- - -
-
- Click the button below to generate a new OAuth 2 Access Token. + +
+
+
+ + +
The name of the application that is displayed to users
-
- Note: The generated token will act on behalf of user - - {{ user.username }} +
+ + +
The URL to which the application will link in the authorization view
- - - - -
+
+ + +
The user friendly description of the application
+
- - Generate Access Token - -
+
+ + +
An e-mail address representing the Avatar for the application. See above for the icon.
+
- -
- - - - - - - - - - - - - - - -
Client ID: -
-
Client Secret: - {{ application.client_secret }} - - -
+
+ + +
Allowed prefix for the application's OAuth redirection/callback URLs
+
+ +
+ + +
+ +
+ + +
+
+
+
+
Deleting an application cannot be undone. Any existing users of your application will break!. Here be dragons!
+ +
+
-
+ +
+
+ Click the button below to generate a new OAuth 2 Access Token. +
+ +
+ Note: The generated token will act on behalf of user + + {{ user.username }} +
+ + + + + +
+ + + Generate Access Token + +
+ + +
+
+
Client ID:
+
+
+
+
Client Secret:
+
{{ application.client_secret }}
+
+ + +
+ +
diff --git a/static/partials/old-manage-application.html b/static/partials/old-manage-application.html new file mode 100644 index 000000000..d4101c5a1 --- /dev/null +++ b/static/partials/old-manage-application.html @@ -0,0 +1,191 @@ +
+
+ +
+
+ +
+
+
+ +

{{ application.name || '(Untitled)' }}

+

+ + {{ organization.name }} +

+
+
+
+ +
+
+ Warning: There is no OAuth Redirect setup for this application. Please enter it in the Settings tab. +
+
+ + +
+ + + + +
+
+ +
+
+
+ + +
The name of the application that is displayed to users
+
+ +
+ + +
The URL to which the application will link in the authorization view
+
+ +
+ + +
The user friendly description of the application
+
+ +
+ + +
An e-mail address representing the Avatar for the application. See above for the icon.
+
+ +
+ + +
Allowed prefix for the application's OAuth redirection/callback URLs
+
+ +
+ + +
+
+
+ + +
+
+
+
+
Deleting an application cannot be undone. Any existing users of your application will break!. Here be dragons!
+ +
+
+
+
+ + +
+
+ Click the button below to generate a new OAuth 2 Access Token. +
+ +
+ Note: The generated token will act on behalf of user + + {{ user.username }} +
+ + + + + +
+ + + Generate Access Token + +
+ + +
+ + + + + + + + + + + + + + + +
Client ID: +
+
Client Secret: + {{ application.client_secret }} + + +
+
+
+ +
+
+
+
+ + + + + +