Adam Coldrick 849440ed19 Update fontawesome to version 5
Version 5 of fontawesome has somewhat better icons for things
like tasks and boards. This commit makes the requisite changes
to our build process to support this upgrade, and switches to
the correct npm package for version 5. It also updates some
icon names which were changed between versions.

Change-Id: If7a538328156cc4007ae065ff96dac18fddd68da
2018-08-03 21:54:31 +01:00

120 lines
4.4 KiB
HTML

<!--
~ Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
~
~ Licensed under the Apache License, Version 2.0 (the "License"); you may
~ not use this file except in compliance with the License. You may obtain
~ a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
~ License for the specific language governing permissions and limitations
~ under the License.
-->
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
<view-title>Users</view-title>
<button class="btn btn-primary btn-sm pull-bottom-right"
ng-click="addUser()">
<i class="fa fa-plus"></i>
<span class="hidden-xs">Create User</span>
</button>
<h1 class="no-border no-margin-bottom">
<i class="fa fa-sb-user"></i> Users
</h1>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="has-feedback has-feedback-no-label">
<input id="userInput"
type="text"
class="form-control"
ng-model="filterQuery"
required
ng-disabled="!users.$resolved"
ng-enter="search()"
placeholder="Search Users">
<span class="form-control-feedback text-muted form-control-feedback-sm">
<i class="fa fa-sync fa-spin"
ng-hide="users.$resolved"></i>
<i class="fa fa-search"
ng-show="users.$resolved"></i>
</span>
<result-set-pager
class="form-control-static text-muted pull-right"
total="searchTotal"
offset="searchOffset"
limit="searchLimit"
on-next-page="nextPage()"
on-previous-page="previousPage()"
on-page-size="updatePageSize(pageSize)"
></result-set-pager>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<table class="table table-condensed table-striped">
<tbody ng-if="!users.$resolved">
<tr>
<td>
<span class="text-muted text-center">
<i class="fa fa-spin fa-sync"></i>
</span>
</td>
</tr>
</tbody>
<tbody ng-if="users.$resolved && users.length == 0">
<tr>
<td class="text-center">
<em class="text-muted">
No users found.
</em>
</td>
</tr>
</tbody>
<tbody ng-if="users.$resolved && users.length > 0">
<tr ng-repeat="user in users">
<td>
<i class="fa fa-sb-user text-muted"></i>
<a href="#!/admin/user/{{user.id}}">
{{user.full_name}}
</a>
</td>
<td>
Email:
<span ng-if="user.email">
{{user.email}}
</span>
<span ng-if="!user.email">
Hidden
</span>
</td>
<td class="hidden-xs">
Last Login:
<span time-moment
eventdate="user.last_login"
ng-if="user.last_login"></span>
<span ng-if="!user.last_login">Never</span>
</td>
<td class="text-right">
<a href="#!/admin/user/{{user.id}}">
<i class="fa fa-edit"></i>
</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>