Commit e446d4e1 authored by Tifenn Guillas's avatar Tifenn Guillas
Browse files

Add objects found => DONE

parent 59f69c66
......@@ -4,7 +4,10 @@
<accordion-group (isOpenChange)="loadData($event, dataset.name)" #ag [panelClass]="'custom-accordion'" [isOpen]="false" class="my-2">
<button class="btn btn-link btn-block clearfix" accordion-heading>
<div class="pull-left float-left">
{{ dataset.label }} <span class="badge badge-pill badge-primary">{{ getCount(dataset.name) }}</span>
{{ dataset.label }}
<span class="badge badge-pill badge-primary">{{ getCount(dataset.name) }}</span>
<span *ngIf="getCount(dataset.name) < 2"> object found</span>
<span *ngIf="getCount(dataset.name) > 1"> objects found</span>
&nbsp;
<span *ngIf="ag.isOpen">
<span class="fas fa-chevron-up"></span>
......
......@@ -20,7 +20,6 @@
<span [inlineSVG]="'assets/logo_vo.svg'" title="Download results in VO format"></span>
</button>
</div>
<div class="w-100 d-block d-lg-none"></div>
<div *ngIf="getConfigDownloadResultFormat('spectra')" class="col-auto mb-2">
<button class="btn btn-lg btn-block dl-btn">
<span [inlineSVG]="'assets/logo_spectra.svg'" title="Download SPECTRA archive"></span>
......
......@@ -36,8 +36,14 @@
<div *ngIf="getTotalObject() > 0">
<div class="lead">
Find <span class="font-weight-bold">{{ getTotalObject() }}</span> objects in <span class="font-weight-bold">{{ getTotalDatasets() }}</span>
<span *ngIf="getTotalDatasets() > 1; else dataset"> datasets</span><ng-template #dataset> dataset</ng-template>.
Found
<span class="font-weight-bold">{{ getTotalObject() }}</span>
<span *ngIf="getTotalObject() > 1; else object"> objects</span>
<ng-template #object> object</ng-template>
in
<span class="font-weight-bold">{{ getTotalDatasets() }}</span>
<span *ngIf="getTotalDatasets() > 1; else dataset"> datasets</span>
<ng-template #dataset> dataset</ng-template>.
</div>
<hr class="my-4">
<div class="row justify-content-around">
......@@ -53,7 +59,12 @@
<span class="title">{{ project.label }}</span>
<ul class="list-unstyled pl-3">
<li *ngFor="let dataset of getSelectedDatasetsByProject(project.name)" >
{{ dataset.label }} <span class="badge badge-pill badge-light" [ngClass]="{'text-primary': getCountByDataset(dataset.name) !== 0}"> {{ getCountByDataset(dataset.name) }} </span>
{{ dataset.label }}
<span class="badge badge-pill badge-light" [ngClass]="{'text-primary': getCountByDataset(dataset.name) !== 0}">
{{ getCountByDataset(dataset.name) }}
</span>
<span *ngIf="getCountByDataset(dataset.name) < 2"> object found</span>
<span *ngIf="getCountByDataset(dataset.name) > 1"> objects found</span>
</li>
</ul>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment