diff --git a/openid-connect-server-webapp/src/main/webapp/resources/js/client.js b/openid-connect-server-webapp/src/main/webapp/resources/js/client.js index 7deec7ac2..fdb29028b 100644 --- a/openid-connect-server-webapp/src/main/webapp/resources/js/client.js +++ b/openid-connect-server-webapp/src/main/webapp/resources/js/client.js @@ -148,7 +148,8 @@ var ClientView = Backbone.View.extend({ events:{ "click .btn-edit":"editClient", "click .btn-delete":"deleteClient", - "click .btn-whitelist":"whiteListClient" + "click .btn-whitelist":"whiteListClient", + 'click .toggleMoreInformation': 'toggleMoreInformation' }, editClient:function () { @@ -203,7 +204,20 @@ var ClientView = Backbone.View.extend({ return false; }, - close:function () { + toggleMoreInformation:function(event) { + event.preventDefault(); + if ($('.moreInformation', this.el).is(':visible')) { + // hide it + $('.moreInformation', this.el).hide('fast'); + $('.toggleMoreInformation i', this.el).attr('class', 'icon-chevron-right'); + } else { + // show it + $('.moreInformation', this.el).show('fast'); + $('.toggleMoreInformation i', this.el).attr('class', 'icon-chevron-down'); + } + }, + + close:function () { $(this.el).unbind(); $(this.el).empty(); } diff --git a/openid-connect-server-webapp/src/main/webapp/resources/js/grant.js b/openid-connect-server-webapp/src/main/webapp/resources/js/grant.js index 6706aa1c2..9dc501fc5 100644 --- a/openid-connect-server-webapp/src/main/webapp/resources/js/grant.js +++ b/openid-connect-server-webapp/src/main/webapp/resources/js/grant.js @@ -167,7 +167,8 @@ var ApprovedSiteView = Backbone.View.extend({ }, events: { - 'click .btn-delete': 'deleteApprovedSite' + 'click .btn-delete': 'deleteApprovedSite', + 'click .toggleMoreInformation': 'toggleMoreInformation' }, deleteApprovedSite:function() { @@ -206,6 +207,20 @@ var ApprovedSiteView = Backbone.View.extend({ return false; }, + toggleMoreInformation:function(event) { + event.preventDefault(); + if ($('.moreInformation', this.el).is(':visible')) { + // hide it + $('.moreInformation', this.el).hide('fast'); + $('.toggleMoreInformation i', this.el).attr('class', 'icon-chevron-right'); + } else { + // show it + $('.moreInformation', this.el).show('fast'); + $('.toggleMoreInformation i', this.el).attr('class', 'icon-chevron-down'); + } + + }, + close:function() { $(this.el).unbind(); $(this.el).empty(); diff --git a/openid-connect-server-webapp/src/main/webapp/resources/js/whitelist.js b/openid-connect-server-webapp/src/main/webapp/resources/js/whitelist.js index a8c7ca96b..f4089e47f 100644 --- a/openid-connect-server-webapp/src/main/webapp/resources/js/whitelist.js +++ b/openid-connect-server-webapp/src/main/webapp/resources/js/whitelist.js @@ -124,7 +124,8 @@ var WhiteListView = Backbone.View.extend({ events:{ 'click .btn-edit': 'editWhitelist', - 'click .btn-delete': 'deleteWhitelist' + 'click .btn-delete': 'deleteWhitelist', + 'click .toggleMoreInformation': 'toggleMoreInformation' }, editWhitelist:function() { @@ -169,6 +170,19 @@ var WhiteListView = Backbone.View.extend({ return false; }, + toggleMoreInformation:function(event) { + event.preventDefault(); + if ($('.moreInformation', this.el).is(':visible')) { + // hide it + $('.moreInformation', this.el).hide('fast'); + $('.toggleMoreInformation i', this.el).attr('class', 'icon-chevron-right'); + } else { + // show it + $('.moreInformation', this.el).show('fast'); + $('.toggleMoreInformation i', this.el).attr('class', 'icon-chevron-down'); + } + }, + close:function() { $(this.el).unbind(); $(this.el).empty(); diff --git a/openid-connect-server-webapp/src/main/webapp/resources/template/client.html b/openid-connect-server-webapp/src/main/webapp/resources/template/client.html index 8c0dc9790..36a2fd265 100644 --- a/openid-connect-server-webapp/src/main/webapp/resources/template/client.html +++ b/openid-connect-server-webapp/src/main/webapp/resources/template/client.html @@ -29,16 +29,37 @@ - <%=client.clientId%> + <%= client.clientName != null ? client.clientName : ( client.clientId.substr(0,8) + '...' ) %> - <%=client.clientName%> - <% if (client.clientDescription) { %> -
<%=client.clientDescription%>
- <% } %> + <% if (client.clientDescription || client.clientUri || client.policyUri || client.tosUri || client.contacts) { %> +
+ <%=client.clientDescription%> + <% if (client.clientUri || client.policyUri || client.tosUri || client.contacts) { %> +
+ more information +
+
+ +
+ <% } %> +
+ <% } %>
- @@ -63,8 +84,8 @@ - ID - Name + Client + Information diff --git a/openid-connect-server-webapp/src/main/webapp/resources/template/grant.html b/openid-connect-server-webapp/src/main/webapp/resources/template/grant.html index 51c07a3c6..cb95832cf 100644 --- a/openid-connect-server-webapp/src/main/webapp/resources/template/grant.html +++ b/openid-connect-server-webapp/src/main/webapp/resources/template/grant.html @@ -35,9 +35,7 @@ Application - Created - Last Accessed - Expires + @@ -59,9 +57,7 @@ Application - Created - Last Accessed - Expires + @@ -85,10 +81,35 @@ - <%= client.clientName != null ? client.clientName : client.clientId %> - <% if (client.clientDescription) { %> -
<%=client.clientDescription%>
- <% } %> + + <%= client.clientName != null ? client.clientName : ( client.clientId.substr(0,8) + '...' ) %> + + <% if (client.clientDescription || client.clientUri || client.policyUri || client.tosUri || client.contacts) { %> +
+ <%=client.clientDescription%> + <% if (client.clientUri || client.policyUri || client.tosUri || client.contacts) { %> +
+ more information +
+
+ +
+ <% } %> +
+ <% } %>
@@ -96,15 +117,17 @@ - <%= formattedDate.creationDate %> - +
+ Authorized: <%= formattedDate.creationDate %> +
- - <%= formattedDate.accessDate %> - +
+ Last accessed: <%= formattedDate.accessDate %> +
- - <%= formattedDate.timeoutDate %> +
+ Expires: <%= formattedDate.timeoutDate %> +
diff --git a/openid-connect-server-webapp/src/main/webapp/resources/template/scope.html b/openid-connect-server-webapp/src/main/webapp/resources/template/scope.html index d06532e64..a817bb00e 100644 --- a/openid-connect-server-webapp/src/main/webapp/resources/template/scope.html +++ b/openid-connect-server-webapp/src/main/webapp/resources/template/scope.html @@ -191,18 +191,27 @@ <% _.each(scopes, function(s) { var ss = systemScopes.getByValue(s); + + if (ss) { %> - + title="<%= ss.get('description') %>" <% } %> -> -<% if (ss && ss.get('icon')) { %> + +style="cursor: default;" > +<% if (ss.get('icon')) { %> <% } %> <%=s%> <% + } else { +%> + <%=s%> +<% + } + }); %> diff --git a/openid-connect-server-webapp/src/main/webapp/resources/template/token.html b/openid-connect-server-webapp/src/main/webapp/resources/template/token.html index b9ce9d8b9..ccb0ee369 100644 --- a/openid-connect-server-webapp/src/main/webapp/resources/template/token.html +++ b/openid-connect-server-webapp/src/main/webapp/resources/template/token.html @@ -69,7 +69,7 @@