redirect URI display within table

pull/705/head
Justin Richer 10 years ago
parent a5ab5b7d08
commit 6d0369e1e2

@ -51,8 +51,24 @@
</td>
<td>
<div class="client-more-info-block"></div>
<% if (client.redirectUris) { %>
<div><span class="muted">
<% for (var i in client.redirectUris) {
var uri = $.url(client.redirectUris[i]);
if (uri.attr('protocol') == 'http' && uri.attr('host') != 'localhost') {
%><b class="text-error"><%- uri.attr('protocol') %></b>://<%
} else if (uri.attr('protocol') != 'https' && uri.attr('protocol') != 'http') {
%><span class="text-warning"><%- uri.attr('protocol') %></span>://<%
} else {
%><span class="text-success"><%- uri.attr('protocol') %></span>://<%
}
%><b><%- uri.attr('host') %><%- uri.attr('port') ? ':' + uri.attr('port') : ''%></b><%- uri.attr('relative') %>
<% } %>
</span></div>
<% } %>
<div class="scope-list"></div>
<div class="client-more-info-block"></div>
</td>
<td>

Loading…
Cancel
Save