|
17 | 17 | /> |
18 | 18 | </div> |
19 | 19 | </div> |
20 | | - </div> |
21 | | - <div class="post" [innerHTML]="response.studentData.responseTextHTML"></div> |
22 | | - @for (attachment of response.studentData.attachments; track attachment) { |
23 | | - <img [src]="attachment.iconURL" i18n-alt alt="Post attachment" class="attachment" /> |
24 | | - } |
25 | | - <div class="flex justify-end items-center"> |
26 | | - <br /> |
| 20 | + <span class="flex-grow"></span> |
27 | 21 | @if ( |
28 | 22 | response.latestInappropriateFlagAnnotation == null || |
29 | 23 | response.latestInappropriateFlagAnnotation.data == null || |
30 | 24 | response.latestInappropriateFlagAnnotation.data.action != 'Delete' |
31 | 25 | ) { |
32 | 26 | <button |
33 | | - mat-stroked-button |
34 | | - color="warn" |
| 27 | + matIconButton |
35 | 28 | (click)="hidePost(response)" |
36 | | - matTooltip="Hide this post so students will not see it" |
| 29 | + matTooltip="Hide from students" |
37 | 30 | matTooltipPosition="above" |
38 | 31 | i18n-matTooltip |
39 | | - i18n |
40 | 32 | > |
41 | | - Hide Post |
| 33 | + <mat-icon>visibility_on</mat-icon> |
42 | 34 | </button> |
43 | | - } |
44 | | - @if ( |
| 35 | + } @else if ( |
45 | 36 | response.latestInappropriateFlagAnnotation != null && |
46 | 37 | response.latestInappropriateFlagAnnotation.data.action === 'Delete' |
47 | 38 | ) { |
48 | | - <mat-icon color="warn" matTooltip="Post is hidden from students" i18n-matTooltip |
49 | | - >visibility_off</mat-icon |
50 | | - > |
51 | 39 | <button |
52 | | - mat-stroked-button |
53 | | - color="warn" |
| 40 | + matIconButton |
54 | 41 | (click)="showPost(response)" |
55 | | - matTooltip="Make this post viewable to students" |
| 42 | + matTooltip="Show to students" |
56 | 43 | matTooltipPosition="above" |
57 | 44 | i18n-matTooltip |
58 | | - i18n |
59 | 45 | > |
60 | | - Show Post |
| 46 | + <mat-icon color="warn">visibility_off</mat-icon> |
61 | 47 | </button> |
62 | 48 | } |
63 | 49 | </div> |
| 50 | + <div class="post" [innerHTML]="response.studentData.responseTextHTML"></div> |
| 51 | + @for (attachment of response.studentData.attachments; track attachment) { |
| 52 | + <img [src]="attachment.iconURL" i18n-alt alt="Post attachment" class="attachment" /> |
| 53 | + } |
64 | 54 | </div> |
65 | 55 | @if (response.replies.length > 0) { |
66 | 56 | <div class="notice-bg-bg"> |
|
97 | 87 | tooltipPosition="after" |
98 | 88 | /> |
99 | 89 | </div> |
100 | | - </div> |
101 | | - <div class="pt-1" [innerHTML]="reply.studentData.responseHTML"></div> |
102 | | - <div class="flex justify-end items-center"> |
| 90 | + <span class="flex-grow"></span> |
103 | 91 | @if ( |
104 | 92 | (response.latestInappropriateFlagAnnotation == null || |
105 | 93 | response.latestInappropriateFlagAnnotation.data.action !== 'Delete') && |
106 | 94 | (reply.latestInappropriateFlagAnnotation == null || |
107 | 95 | reply.latestInappropriateFlagAnnotation.data.action != 'Delete') |
108 | 96 | ) { |
109 | 97 | <button |
110 | | - mat-stroked-button |
111 | | - color="warn" |
| 98 | + matIconButton |
112 | 99 | (click)="hidePost(reply)" |
113 | | - i18n-matTooltip |
114 | | - matTooltip="Hide this post so students will not see it" |
| 100 | + matTooltip="Hide from students" |
115 | 101 | matTooltipPosition="above" |
116 | | - i18n |
| 102 | + i18n-matTooltip |
117 | 103 | > |
118 | | - Hide Post |
| 104 | + <mat-icon>visibility_on</mat-icon> |
119 | 105 | </button> |
120 | | - } |
121 | | - @if ( |
| 106 | + } @else if ( |
122 | 107 | response.latestInappropriateFlagAnnotation != null && |
123 | 108 | response.latestInappropriateFlagAnnotation.data.action === 'Delete' |
124 | 109 | ) { |
125 | 110 | <mat-icon |
| 111 | + tabindex="0" |
126 | 112 | color="warn" |
127 | | - matTooltip="Parent post is hidden, so this post is also hidden" |
| 113 | + matTooltip="Parent post is hidden, so this comment is also hidden" |
| 114 | + matTooltipPosition="above" |
128 | 115 | i18n-matTooltip |
129 | 116 | >visibility_off</mat-icon |
130 | 117 | > |
131 | | - } |
132 | | - @if ( |
| 118 | + } @else if ( |
133 | 119 | reply.latestInappropriateFlagAnnotation != null && |
134 | 120 | reply.latestInappropriateFlagAnnotation.data.action === 'Delete' |
135 | 121 | ) { |
136 | | - <mat-icon color="warn" matTooltip="Post is hidden from students" i18n-matTooltip |
137 | | - >visibility_off</mat-icon |
138 | | - > |
139 | 122 | <button |
140 | | - mat-stroked-button |
141 | | - color="warn" |
| 123 | + matIconButton |
142 | 124 | (click)="showPost(reply)" |
143 | | - i18n-matTooltip |
144 | | - matTooltip="Make this post viewable to students" |
| 125 | + matTooltip="Show to students" |
145 | 126 | matTooltipPosition="above" |
146 | | - i18n |
| 127 | + i18n-matTooltip |
147 | 128 | > |
148 | | - Show Post |
| 129 | + <mat-icon color="warn">visibility_off</mat-icon> |
149 | 130 | </button> |
150 | 131 | } |
151 | 132 | </div> |
| 133 | + <div class="pt-1" [innerHTML]="reply.studentData.responseHTML"></div> |
152 | 134 | </div> |
153 | 135 | } |
154 | 136 | </div> |
|
0 commit comments