added simple display for required claims into resource set display

pull/708/merge
Justin Richer 10 years ago
parent 43a432eb9a
commit c63651626f

@ -350,6 +350,9 @@
"no-resource-sets": "There are no resource sets registered. Introduce a protected to this authorization server to let it register some.", "no-resource-sets": "There are no resource sets registered. Introduce a protected to this authorization server to let it register some.",
"no-required-claims": "There are no required claims for this resource set: This resource set is inaccessible by others.", "no-required-claims": "There are no required claims for this resource set: This resource set is inaccessible by others.",
"share-email": "Share with email address", "share-email": "Share with email address",
"shared-with": "Shared with:",
"shared-nobody": "NOBODY",
"shared-nobody-tooltip": "This resource is not accessible by anyone else, edit the policies and share it with someone.",
"issuers": "Issuers", "issuers": "Issuers",
"claim": "Claim", "claim": "Claim",
"value": "Value" "value": "Value"

@ -47,6 +47,17 @@
<span title="<%- client.clientId %>"><%- client.clientName != null ? client.clientName : ( client.clientId.substr(0,8) + '...' ) %></span> <span title="<%- client.clientId %>"><%- client.clientName != null ? client.clientName : ( client.clientId.substr(0,8) + '...' ) %></span>
<div class="client-more-info-block"></div> <div class="client-more-info-block"></div>
<div class="scope-list"></div> <div class="scope-list"></div>
<div><span class="text-warning" data-i18n="policy.policy-table.shared-with"><i class="icon-share"></i> Shared with:</span>
<% if (!_.isEmpty(rs.claimsRequired)) {
_.each(rs.claimsRequired, function(claim) { %>
<span class="label label-info"><%- claim.value %></span>
<% });
} else { %>
<span class="label label-important" data-i18n="policy.policy-table.shared-nobody;[title]policy.policy-table.shared-nobody-tooltip" title="This resource is not accessible by anyone else, edit the policies and share it with someone.">NOBODY</span>
<% } %>
</div>
</td> </td>
<td> <td>

Loading…
Cancel
Save