|
2 | 2 | <header>
|
3 | 3 | <h2>{{user.displayName}}</h2>
|
4 | 4 | <h3>{{'@' + user.name}}</h3>
|
5 |
| -</header> |
6 | 5 |
|
7 |
| -@if (user.profile && user.profile.minibio) { |
8 |
| -<mat-card> |
9 |
| - <mat-card-content> |
10 |
| - <devmx-markdown [content]="user.profile.minibio" /> |
11 |
| - </mat-card-content> |
12 |
| -</mat-card> |
13 |
| -} |
14 |
| -<!-- --> |
| 6 | + <div class="user-contact"> |
| 7 | + @if (user.contact.email && user.visibility?.email) { |
| 8 | + <p> |
| 9 | + <devmx-icon name="message/mail" /> |
| 10 | + <span>{{user.contact.email}}</span> |
| 11 | + </p> |
| 12 | + } |
| 13 | + <!-- --> |
| 14 | + @if (user.contact.phone && user.visibility?.phone) { |
| 15 | + <p> |
| 16 | + <devmx-icon name="tech/phone" /> |
| 17 | + <span>{{user.contact.phone}}</span> |
| 18 | + </p> |
| 19 | + } |
| 20 | + </div> |
| 21 | +</header> |
15 | 22 |
|
16 |
| -@if (user.skills?.length) { |
17 |
| -<mat-card> |
18 |
| - <mat-card-content> |
19 |
| - <ol> |
20 |
| - @for (item of user.skills; track item.skill.id) { |
21 |
| - <li> |
22 |
| - <p>{{item.skill.name}}</p> |
23 |
| - <mat-progress-bar [value]="item.weight" /> |
24 |
| - </li> |
25 |
| - } |
26 |
| - </ol> |
27 |
| - </mat-card-content> |
28 |
| -</mat-card> |
| 23 | +@if (user.visibility?.roles) { |
| 24 | +<div> |
| 25 | + <mat-chip-set> |
| 26 | + @for (role of user.roles | keyvalue; track role) { |
| 27 | + <!-- --> |
| 28 | + @if (role.value) { |
| 29 | + <mat-chip>{{role.key | role}}</mat-chip> |
| 30 | + } |
| 31 | + <!-- --> |
| 32 | + } |
| 33 | + </mat-chip-set> |
| 34 | +</div> |
29 | 35 | }
|
30 | 36 |
|
31 |
| -<!-- --> |
32 |
| -} |
| 37 | +<section> |
| 38 | + @if (user.profile && user.profile.minibio) { |
| 39 | + <mat-card> |
| 40 | + <mat-card-content> |
| 41 | + <devmx-markdown [content]="user.profile.minibio" /> |
| 42 | + </mat-card-content> |
| 43 | + </mat-card> |
| 44 | + } |
| 45 | + <!-- --> |
33 | 46 |
|
| 47 | + @if (user.skills?.length && user.visibility?.skills) { |
| 48 | + <mat-card> |
| 49 | + <mat-card-content> |
| 50 | + <ol> |
| 51 | + @for (item of user.skills; track item.skill.id) { |
| 52 | + <li> |
| 53 | + <p>{{item.skill.name}}</p> |
| 54 | + <mat-progress-bar [value]="item.weight" /> |
| 55 | + </li> |
| 56 | + } |
| 57 | + </ol> |
| 58 | + </mat-card-content> |
| 59 | + </mat-card> |
| 60 | + } |
| 61 | +</section> |
34 | 62 | <!-- -->
|
35 | 63 |
|
36 | 64 | <section>
|
| 65 | + @if (user.visibility?.events) { |
| 66 | + <!-- --> |
37 | 67 | @if (eventFacade.response$ | async; as response) {
|
38 | 68 | <devmx-event-card-list [data]="response.data" />
|
39 | 69 | }
|
| 70 | + <!-- --> |
| 71 | + } |
40 | 72 |
|
41 | 73 | <!-- -->
|
42 | 74 |
|
| 75 | + @if (user.visibility?.presentations) { |
| 76 | + <!-- --> |
43 | 77 | @if (presentationFacade.response$ | async; as response) {
|
44 | 78 | <devmx-presentation-card-list [data]="response.data" />
|
45 | 79 | }
|
| 80 | + <!-- --> |
| 81 | + } |
46 | 82 | </section>
|
| 83 | + |
| 84 | +<!-- --> |
| 85 | +} |
0 commit comments