added icons and tooltips to approved site table

pull/263/head
Justin Richer 2012-11-15 17:51:31 -05:00
parent 20b73ea0c4
commit 2beff07d4b
2 changed files with 15 additions and 1 deletions

View File

@ -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;
},

View File

@ -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>