mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[CST-12109] fix of text messages / source image
This commit is contained in:
@@ -1,24 +1,21 @@
|
||||
<ng-container *ngIf="(sources$ | async) as sources">
|
||||
<ng-container *ngFor="let source of sources">
|
||||
<div class="alert alert-info d-flex flex-row" *ngIf="source.totalEvents > 0">
|
||||
<div class="col-2">
|
||||
<img class="source-logo"
|
||||
src="assets/images/qa-{{(source.id | dsSplit: ':')[0]}}-logo.png"
|
||||
alt="{{source.id}} logo"
|
||||
onerror="this.src='assets/images/dspace-logo.svg'">
|
||||
</div>
|
||||
<div class="w-100 d-flex justify-content-between">
|
||||
<div class="pl-4 align-self-center">
|
||||
<ng-container *ngIf="this.item.isArchived; else reinstate">
|
||||
<span>
|
||||
{{
|
||||
(isAdmin$ | async) ? ('qa-event-notification.check.notification-withdrawn.admin' | translate : { source: (source.id | dsSplit: ':')[0], num: source.totalEvents })
|
||||
: ('qa-event-notification.check.notification-withdrawn.user' | translate : { num: source.totalEvents })
|
||||
}}
|
||||
</span>
|
||||
</ng-container>
|
||||
<ng-template #reinstate>
|
||||
{{ 'qa-event-notification.check.notification-reinstate' | translate: { num: source.totalEvents } }}
|
||||
</ng-template>
|
||||
{{'item.qa-event-notification.check.notification-info' | translate : {num: source.totalEvents } }}
|
||||
</div>
|
||||
<button [routerLink]="[ getQualityAssuranceRoute(), (source.id | dsSplit: ':')[0], 'target', item.id]"
|
||||
[queryParams]="{ forward: true }"
|
||||
class="btn btn-primary align-self-center">{{ this.item.isArchived ? ('qa-event-notification-undo-withdrawn.check.button' | translate)
|
||||
: ('qa-event-notification-undo-reinstate.check.button' | translate) }}</button>
|
||||
class="btn btn-primary align-self-center">
|
||||
{{'item.qa-event-notification-info.check.button' | translate}}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</ng-container>
|
||||
|
Reference in New Issue
Block a user