diff options
author | brantje <brantje@gmail.com> | 2016-10-07 17:13:28 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2016-10-07 17:13:28 +0300 |
commit | babf4113ee22231ed36b7db741a88c03c4200b1a (patch) | |
tree | 9966fd3bcf6d4f3b34062958a52280bd682017ed /templates/views/partials/forms/share_credential/basics.html | |
parent | 836d2f1410ae4d308b11afff81cf732f06d2b2de (diff) |
Make sharing page pretty, closes #59
Diffstat (limited to 'templates/views/partials/forms/share_credential/basics.html')
-rw-r--r-- | templates/views/partials/forms/share_credential/basics.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/views/partials/forms/share_credential/basics.html b/templates/views/partials/forms/share_credential/basics.html index d37609f2..b8c12547 100644 --- a/templates/views/partials/forms/share_credential/basics.html +++ b/templates/views/partials/forms/share_credential/basics.html @@ -35,7 +35,7 @@ </div> </div> </div> - <div class="col-xs-12 col-md-6"> + <div class="col-xs-12 col-md-6" ng-show="share_settings.cypher_progress.times.length > 0"> <table class="table"> <thead> <tr> @@ -70,9 +70,10 @@ </thead> <tr ng-repeat="user in share_settings.credentialSharedWithUserAndGroup"> <td> - <i class="fa fa-user" ng-if="user.type === 'user'"></i> - <i class="fa fa-group" ng-if="user.type === 'group'"></i> + <i class="fa fa-user" ng-if="user.pending === false"></i> + <i class="fa fa-user-times" ng-if="user.pending === true"></i> {{user.userId}} + <small ng-if="user.pending === true" class="pull-right col-xs-4">Pending</small> </td> <td><input type="checkbox" ng-click="setPermission(user.acl, default_permissions.permissions.READ)" ng-checked="hasPermission(user.acl, default_permissions.permissions.READ)"> </td> <td><input type="checkbox" ng-click="setPermission(user.acl, default_permissions.permissions.WRITE)" ng-checked="hasPermission(user.acl, default_permissions.permissions.WRITE)"></td> |