group.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <div class="form-content">
  2. <md-card class="two-row">
  3. <div class="avatar">
  4. <eee-avatar eee-type="'group'"
  5. eee-receiver="ctrl.receiver"
  6. eee-resolution="'high'"></eee-avatar>
  7. </div>
  8. <div>
  9. <md-card-title>
  10. <md-card-title-text>
  11. <span class="md-headline" translate>messenger.GROUP_CREATOR</span>
  12. </md-card-title-text>
  13. </md-card-title>
  14. <md-card-content>
  15. <eee-contact-badge
  16. eee-identity="ctrl.receiver.administrator"
  17. eee-linked="ctrl.receiver.administrator != ctrl.me.id"
  18. ng-class="{'linked': ctrl.receiver.administrator != ctrl.me.id}">
  19. </eee-contact-badge>
  20. </md-card-content>
  21. <md-card-title>
  22. <md-card-title-text>
  23. <span class="md-headline" translate>messenger.GROUP_MEMBERS</span>
  24. </md-card-title-text>
  25. </md-card-title>
  26. <md-card-content>
  27. <ul class="member-list">
  28. <li ng-repeat="memberIdentity in ctrl.receiver.members" ng-if="memberIdentity != ctrl.receiver.administrator">
  29. <eee-contact-badge
  30. eee-identity="memberIdentity"
  31. eee-linked="memberIdentity != ctrl.me.id"
  32. ng-class="{'linked': memberIdentity != ctrl.me.id}">
  33. </eee-contact-badge>
  34. </li>
  35. </ul>
  36. </md-card-content>
  37. </div>
  38. </md-card>
  39. <md-card>
  40. <md-card-content>
  41. <section layout="row" layout-sm="column" layout-align="center center" layout-wrap>
  42. <md-button ng-disabled="!ctrl.receiver.access.canSync" class="md-raised" ng-click="ctrl.controllerModel.sync($event)">
  43. <span translate>messenger.GROUP_SYNC</span>
  44. </md-button>
  45. <md-button ng-disabled="!ctrl.receiver.access.canLeave" class="md-raised " ng-click="ctrl.controllerModel.leave($event)">
  46. <span translate>messenger.GROUP_LEAVE</span>
  47. </md-button>
  48. <md-button ng-disabled="!ctrl.receiver.access.canDelete" class="md-raised md-warn" ng-click="ctrl.controllerModel.delete()">
  49. <span translate>messenger.GROUP_DELETE</span>
  50. </md-button>
  51. </section>
  52. </md-card-content>
  53. </md-card>
  54. </div>