Browse Source

added display flag for default scopes

pull/779/head
Justin Richer 10 years ago
parent
commit
6a41e98474
  1. 3
      openid-connect-server-webapp/src/main/webapp/resources/js/locale/en/messages.json
  2. 3
      openid-connect-server-webapp/src/main/webapp/resources/js/scope.js
  3. 2
      openid-connect-server-webapp/src/main/webapp/resources/template/admin.html
  4. 3
      openid-connect-server-webapp/src/main/webapp/resources/template/scope.html

3
openid-connect-server-webapp/src/main/webapp/resources/js/locale/en/messages.json

@ -296,7 +296,8 @@
"confirm": "Are you sure sure you would like to delete this scope? Clients that have this scope will still be able to ask for it.",
"new": "New Scope",
"text": "There are no system scopes defined. Clients may still have custom scopes.",
"tooltip-restricted": "This scope can be used only by adminisrtators. It is not available for dynamic registration."
"tooltip-restricted": "This scope can be used only by adminisrtators. It is not available for dynamic registration.",
"tooltip-default": "This scope is automatically assigned to newly registered clients."
}
},
"token": {

3
openid-connect-server-webapp/src/main/webapp/resources/js/scope.js

@ -99,7 +99,8 @@ var SystemScopeView = Backbone.View.extend({
render:function (eventName) {
this.$el.html(this.template(this.model.toJSON()));
this.$('.restricted').tooltip({title: $.t('scope.system-scope-table.tooltip-restricted')});
$('.restricted', this.el).tooltip({title: $.t('scope.system-scope-table.tooltip-restricted')});
$('.default', this.el).tooltip({title: $.t('scope.system-scope-table.tooltip-default')});
return this;
$(this.el).i18n();

2
openid-connect-server-webapp/src/main/webapp/resources/template/admin.html

@ -36,7 +36,7 @@
<% if (!opt.toggle) { %>
<a class="btn btn-small btn-delete-list-item" href="#"><i class="icon-minus-sign"></i></a>
<% } else { %>
<input class="checkbox-list-item" type="checkbox" <%- opt.checked ? 'checked="checked"' : '' %> />
<input class="checkbox checkbox-list-item" type="checkbox" <%- opt.checked ? 'checked="checked"' : '' %> />
<% } %>
</td>
</script>

3
openid-connect-server-webapp/src/main/webapp/resources/template/scope.html

@ -47,6 +47,9 @@
<script type="text/html" id="tmpl-system-scope">
<td>
<% if (defaultScope) { %>
<span class="label label-success default"><i class="icon-flag icon-white"></i></span>
<% } %>
<% if (restricted) { %>
<span class="label label-warning restricted"><i class="icon-ban-circle icon-white"></i></span>
<% } %>

Loading…
Cancel
Save