added icons and tooltips to approved site table
parent
20b73ea0c4
commit
2beff07d4b
|
@ -35,7 +35,7 @@
|
|||
events:{
|
||||
"click .btn":function (e) {
|
||||
e.preventDefault();
|
||||
this.$el.tooltip('destroy');
|
||||
this.$el.tooltip('delete');
|
||||
this.model.destroy();
|
||||
}
|
||||
},
|
||||
|
@ -687,6 +687,10 @@
|
|||
var json = {grant: this.model.toJSON(), client: this.options.client.toJSON()};
|
||||
|
||||
this.$el.html(this.template(json));
|
||||
|
||||
this.$('.dynamically-registered').tooltip({title: 'This client was dynamically registered'});
|
||||
this.$('.whitelisted-site').tooltip({title: 'This site was whitelisted by an adminstrator'});
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
|
|
|
@ -358,6 +358,7 @@
|
|||
<table id="grant-table" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Application</th>
|
||||
<th>Created</th>
|
||||
<th>Last Accessed</th>
|
||||
|
@ -376,6 +377,15 @@
|
|||
</script>
|
||||
|
||||
<script type="text/html" id="tmpl-grant">
|
||||
<td>
|
||||
<% if (dynamicallyRegistered) { %>
|
||||
<span class="dynamically-registered"><i class="icon-cog"></i></span>
|
||||
<% } %>
|
||||
<% if (whitelistedSite != null) { %>
|
||||
<span class="whitelisted-site"><i class="icon-certificate"></i></span>
|
||||
<% } %>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<%= client.applicationName != null ? client.applicationName : client.clientId %>
|
||||
<blockquote><small><%=client.clientDescription%></small></blockquote>
|
||||
|
|
Loading…
Reference in New Issue