contact.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <div class="form-content">
  2. <!-- information list card -->
  3. <md-card class="two-row">
  4. <div class="avatar">
  5. <eee-avatar eee-receiver="ctrl.receiver"
  6. eee-resolution="'high'"></eee-avatar>
  7. </div>
  8. <md-card-content>
  9. <dl class="key-values">
  10. <dt>Threema ID</dt>
  11. <dd>
  12. <span class="complex-values">
  13. <span>{{ ctrl.receiver.id }}</span>
  14. <span ng-if="ctrl.receiver.state !== 'ACTIVE'">({{ ctrl.receiver.state }})</span>
  15. <span class="indicator-icon" ng-if="ctrl.showBlocked()"
  16. translate-attr="{'aria-label': 'messenger.THREEMA_BLOCKED_RECEIVER'}">
  17. (<span translate>messenger.THREEMA_BLOCKED_RECEIVER</span>)
  18. </span>
  19. <span class="indicator-icon" ng-if="ctrl.isWorkReceiver"
  20. translate-attr="{'aria-label': 'messenger.THREEMA_WORK_CONTACT',
  21. 'title': 'messenger.THREEMA_WORK_CONTACT'}">
  22. <img src="img/ic_work_round.svg" alt="Threema Work user">
  23. </span>
  24. <eee-verification-level contact="ctrl.receiver"></eee-verification-level>
  25. </span>
  26. </dd>
  27. <dt><span translate>messenger.KEY_FINGERPRINT</span></dt>
  28. <dd>{{ ctrl.fingerPrint.value || "Loading..." }}</dd>
  29. <dt><span translate>messenger.NICKNAME</span></dt>
  30. <dd ng-if="ctrl.receiver.publicNickname" ng-bind-html="ctrl.receiver.publicNickname | emojify"></dd>
  31. <dd ng-if="!ctrl.receiver.publicNickname">-</dd>
  32. <dt><span translate>messenger.FIRST_NAME</span></dt>
  33. <dd>{{ ctrl.receiver.firstName || "-" }}</dd>
  34. <dt><span translate>messenger.LAST_NAME</span></dt>
  35. <dd>{{ ctrl.receiver.lastName || "-" }}</dd>
  36. </dl>
  37. </md-card-content>
  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.controllerModel.canClean()" class="md-raised" ng-click="ctrl.controllerModel.clean($event)">
  43. <span translate>messenger.DELETE_THREAD</span>
  44. </md-button>
  45. </section>
  46. </md-card-content>
  47. </md-card>
  48. <!-- system contact list card -->
  49. <md-card ng-if="ctrl.hasSystemEmails || ctrl.hasSystemPhones">
  50. <md-card-title>
  51. <md-card-title-text>
  52. <span class="md-headline" translate>messenger.SYSTEM_CONTACT</span>
  53. </md-card-title-text>
  54. </md-card-title>
  55. <md-card-content>
  56. <div class="two-row">
  57. <div ng-if="ctrl.hasSystemEmails">
  58. <dl class="key-values">
  59. <dt ng-repeat-start="email in ctrl.receiver.systemContact.emails">{{email.label }}</dt>
  60. <dd ng-repeat-end>{{ email.address }} </dd>
  61. </dl>
  62. </div>
  63. <div ng-if="ctrl.hasSystemPhones">
  64. <dl class="key-values">
  65. <dt ng-repeat-start="phoneNumber in ctrl.receiver.systemContact.phoneNumbers">{{phoneNumber.label }}</dt>
  66. <dd ng-repeat-end>{{ phoneNumber.number }} </dd>
  67. </dl>
  68. </div>
  69. </div>
  70. </md-card-content>
  71. </md-card>
  72. <!-- group card -->
  73. <md-card ng-if="ctrl.showGroups">
  74. <md-card-title>
  75. <md-card-title-text>
  76. <span class="md-headline" translate>messenger.MEMBER_OF_GROUPS</span>
  77. </md-card-title-text>
  78. </md-card-title>
  79. <md-card-content>
  80. <ul class="group-list">
  81. <li ng-repeat="groupReceiver in ctrl.inGroups">
  82. <eee-group-badge class="linked" eee-group-receiver="groupReceiver" eee-contact-receiver="ctrl.receiver"/>
  83. </li>
  84. </ul>
  85. </md-card-content>
  86. </md-card>
  87. <!-- distribution list card -->
  88. <md-card ng-if="ctrl.showDistributionLists">
  89. <md-card-title>
  90. <md-card-title-text>
  91. <span class="md-headline" translate>messenger.MEMBER_OF_DISTRIBUTION_LISTS</span>
  92. </md-card-title-text>
  93. </md-card-title>
  94. <md-card-content>
  95. <ul class="group-list">
  96. <li ng-repeat="distributionListReceiver in ctrl.inDistributionLists">
  97. <eee-distribution-list-badge eee-distribution-list-receiver="distributionListReceiver"/>
  98. </li>
  99. </ul>
  100. </md-card-content>
  101. </md-card>
  102. </div>