|
1 | | -<p-message styleClass="w-full" [icon]="'fas fa-' + iconClass()" [severity]="severity()"> |
| 1 | +<p-message styleClass="w-full" [severity]="severity()"> |
2 | 2 | <ng-template #container> |
3 | | - <div class="banner-container w-full flex flex-row justify-content-between align-items-center font-bold text-base"> |
4 | | - @if (!isWithdrawn()) { |
5 | | - {{ status() | translate | titlecase }}: {{ bannerContent() }} |
| 3 | + <div class="banner-container w-full flex flex-row gap-2 align-items-start font-bold text-base"> |
| 4 | + <osf-icon class="pt-1" [iconClass]="'fas fa-' + iconClass()" /> |
6 | 5 |
|
7 | | - <div> |
8 | | - @if (reviewerComment() && !provider().reviewsCommentsPrivate && !isPendingWithdrawal()) { |
9 | | - <p-button |
10 | | - [link]="true" |
11 | | - class="cursor-pointer" |
12 | | - (click)="feedbackDialogVisible = true" |
13 | | - [label]="'Show moderator feedback'" |
14 | | - /> |
| 6 | + <div class="flex-1 flex flex-column gap-1 justify-content-between align-items-start lg:flex-row"> |
| 7 | + @if (!isWithdrawn()) { |
| 8 | + {{ status() | translate | titlecase }}: {{ bannerContent() }} |
15 | 9 |
|
16 | | - <p-dialog header="Moderator feedback" [modal]="true" draggable="false" [(visible)]="feedbackDialogVisible"> |
17 | | - <div class="flex flex-column gap-2 align-items-start"> |
18 | | - <p-tag [severity]="severity()"> {{ status() | translate | titlecase }}</p-tag> |
| 10 | + <div> |
| 11 | + @if (reviewerComment() && !provider().reviewsCommentsPrivate && !isPendingWithdrawal()) { |
| 12 | + <p-button |
| 13 | + [link]="true" |
| 14 | + class="cursor-pointer" |
| 15 | + (click)="feedbackDialogVisible = true" |
| 16 | + [label]="'Show moderator feedback'" |
| 17 | + /> |
19 | 18 |
|
20 | | - <p>{{ reviewerComment() }}</p> |
| 19 | + <p-dialog |
| 20 | + [header]="'preprints.details.statusBanner.moderatorFeedback' | translate" |
| 21 | + [modal]="true" |
| 22 | + draggable="false" |
| 23 | + [(visible)]="feedbackDialogVisible" |
| 24 | + > |
| 25 | + <div class="flex flex-column gap-2 align-items-start"> |
| 26 | + <p-tag [severity]="severity()"> {{ status() | translate | titlecase }}</p-tag> |
21 | 27 |
|
22 | | - <div> |
23 | | - @if (!provider().reviewsCommentsAnonymous) { |
24 | | - <p>{{ reviewerName() }}</p> |
25 | | - } |
| 28 | + <p>{{ reviewerComment() }}</p> |
26 | 29 |
|
27 | | - <p>{{ provider().name }} {{ 'preprints.details.statusBanner.moderator' | translate }}</p> |
| 30 | + <div> |
| 31 | + @if (!provider().reviewsCommentsAnonymous) { |
| 32 | + <p>{{ reviewerName() }}</p> |
| 33 | + } |
| 34 | + |
| 35 | + <p>{{ provider().name }} {{ 'preprints.details.statusBanner.moderator' | translate }}</p> |
| 36 | + </div> |
28 | 37 | </div> |
29 | | - </div> |
30 | | - </p-dialog> |
31 | | - } |
32 | | - </div> |
33 | | - } @else { |
34 | | - {{ bannerContent() }} |
35 | | - } |
| 38 | + </p-dialog> |
| 39 | + } |
| 40 | + </div> |
| 41 | + } @else { |
| 42 | + {{ bannerContent() }} |
| 43 | + } |
| 44 | + </div> |
36 | 45 | </div> |
37 | 46 | </ng-template> |
38 | 47 | </p-message> |
0 commit comments