Skip to content

Commit

Permalink
feat(admin-users): use gravatar in admin users area
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Mar 4, 2013
1 parent 1254f8e commit 46eddd0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/app/admin/users/admin-users.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
angular.module('admin-users', ['admin-users-edit', 'services.crud', 'services.i18nNotifications'])
angular.module('admin-users', ['admin-users-edit', 'services.crud', 'services.i18nNotifications', 'directives.gravatar'])

.config(['crudRouteProvider', function (crudRouteProvider) {

Expand Down
1 change: 1 addition & 0 deletions client/src/app/admin/users/users-edit.tpl.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<div class="well">
<form name="form" novalidate crud-edit="user">
<legend>User</legend>
<gravatar email="user.email" size="200" class="img-polaroid pull-right"></gravatar>
<label>E-mail</label>
<input class="span6" type="email" name="email" ng-model="user.email" required unique-email>
<span ng-show="showError('email', 'required')" class="help-inline">This field is required.</span>
Expand Down
2 changes: 2 additions & 0 deletions client/src/app/admin/users/users-list.tpl.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<table class="table table-bordered table-condensed table-striped table-hover">
<thead>
<tr>
<th></th>
<th>E-mail</th>
<th>Last name</th>
<th>First name</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="user in users" ng-click="edit(user.$id())">
<td><gravatar email="user.email" size="50" default-image="'monsterid'"></gravatar></td>
<td>{{user.email}}</td>
<td>{{user.lastName}}</td>
<td>{{user.firstName}}</td>
Expand Down

0 comments on commit 46eddd0

Please sign in to comment.