Skip to content

Commit 099ae41

Browse files
committed
added client logo to admin table, closes mitreid-connect#280
1 parent e828f3f commit 099ae41

File tree

2 files changed

+27
-12
lines changed

2 files changed

+27
-12
lines changed

openid-connect-server-webapp/src/main/webapp/resources/css/mitreid-connect.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,9 @@ h1,label {
186186
.user-profile dd, .user-profile dt {
187187
height: 20px;
188188
}
189+
190+
/* Client table images */
191+
.client-logo {
192+
max-width: 64px;
193+
max-height: 64px
194+
}

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

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,29 @@
2828
</td>
2929

3030
<td>
31-
<div>
32-
<span class="clientid-substring" title="<%- client.clientId %> (click to display client ID)"><%- client.clientName != null ? client.clientName : ( client.clientId.substr(0,8) + '...' ) %></span>
33-
</div>
34-
<div>
35-
<input type="text" readonly style="cursor: text" class="clientid-full input-xxlarge" value="<%- client.clientId %>" />
36-
</div>
37-
<div>
38-
<% if (client.dynamicallyRegistered) { %>
39-
<span class="label label-inverse dynamically-registered"><i class="icon-globe icon-white"></i></span>
40-
<% } %>
41-
<% if (client.allowIntrospection) { %>
42-
<span class="label allow-introspection"><i class="icon-eye-open icon-white"></i></span>
31+
32+
<div class="media">
33+
<% if (client.logoUri) { %>
34+
<span class="pull-left"><img class="media-object client-logo" src="<%- client.logoUri %>"></span>
4335
<% } %>
36+
37+
<div class="media-body">
38+
<span class="clientid-substring" title="<%- client.clientId %> (click to display client ID)"><%- client.clientName != null ? client.clientName : ( client.clientId.substr(0,8) + '...' ) %></span>
39+
</div>
40+
<div>
41+
<input type="text" readonly style="cursor: text" class="clientid-full input-xxlarge" value="<%- client.clientId %>" />
42+
</div>
43+
<div>
44+
<% if (client.dynamicallyRegistered) { %>
45+
<span class="label label-inverse dynamically-registered"><i class="icon-globe icon-white"></i></span>
46+
<% } %>
47+
<% if (client.allowIntrospection) { %>
48+
<span class="label allow-introspection"><i class="icon-eye-open icon-white"></i></span>
49+
<% } %>
50+
</div>
4451
</div>
52+
53+
4554
<div>
4655
<small class="muted" title="<%- hoverCreationDate %>"><i class="icon-time"></i> <span data-i18n="client.client-table.registered">Registered</span> <%- displayCreationDate %></small>
4756
</div>

0 commit comments

Comments
 (0)