|
2 | 2 | <div class="pt-4 text-sm"> |
3 | 3 | <div class="mb-4 flex flex-col gap-y-2 sm:float-right sm:w-52 md:ms-6 md:mb-4"> |
4 | 4 | @if (hitContent().ega_accession !== '') { |
5 | | - <a |
6 | | - appExtLink |
7 | | - mat-stroked-button |
8 | | - class="larger-button-text" |
9 | | - [href]="'https://ega-archive.org/datasets/' + hitContent().ega_accession" |
10 | | - data-umami-event="Dataset Summary EGA Dataset Clicked" |
11 | | - >EGA Dataset</a |
12 | | - > |
| 5 | + <a |
| 6 | + appExtLink |
| 7 | + mat-stroked-button |
| 8 | + class="larger-button-text" |
| 9 | + [href]="'https://ega-archive.org/datasets/' + hitContent().ega_accession" |
| 10 | + data-umami-event="Dataset Summary EGA Dataset Clicked" |
| 11 | + >EGA Dataset</a |
| 12 | + > |
13 | 13 | } |
14 | 14 | <app-dynamic-access-request-button datasetID="{{ hit().id_ }}" /> |
15 | 15 | <a |
|
22 | 22 | </div> |
23 | 23 | <p class="*:mb-0.5"><strong>Dataset ID:</strong> {{ summary().accession }}</p> |
24 | 24 | @if (hitContent().ega_accession) { |
25 | | - <p><strong>EGA ID:</strong> {{ hitContent().ega_accession }}</p> |
| 25 | + <p><strong>EGA ID:</strong> {{ hitContent().ega_accession }}</p> |
26 | 26 | } |
27 | 27 | <p class="*:mb-0.5"><strong>Full title:</strong> {{ summary().title }}</p> |
28 | 28 | <app-paragraphs |
|
31 | 31 | pClasses="text-sm mb-0.5" |
32 | 32 | /> |
33 | 33 | @if (summary().types.length) { |
34 | | - <div class="flex flex-wrap items-baseline"> |
35 | | - <strong>Types: </strong> |
36 | | - <mat-chip-set> |
37 | | - @for (type of summary().types; track type) { |
38 | | - <mat-chip class="small-chip mr-1 text-sm">{{ type }}</mat-chip> |
39 | | - } |
40 | | - </mat-chip-set> |
41 | | - </div> |
| 34 | + <div class="flex flex-wrap items-baseline"> |
| 35 | + <strong>Types: </strong> |
| 36 | + <mat-chip-set> |
| 37 | + @for (type of summary().types; track type) { |
| 38 | + <mat-chip class="small-chip mr-1 text-sm">{{ type }}</mat-chip> |
| 39 | + } |
| 40 | + </mat-chip-set> |
| 41 | + </div> |
42 | 42 | } |
43 | 43 | <div |
44 | 44 | class="mt-8 mb-4 *:flex *:grow *:flex-col *:gap-y-8 sm:flex *:sm:mb-0 *:sm:max-w-[50%] *:sm:overflow-x-auto lg:pe-[15%]" |
|
72 | 72 | <strong>Sample info:</strong> |
73 | 73 | <p> |
74 | 74 | <strong>{{ samplesSummary().count }}</strong> Sample{{ |
75 | | - samplesSummary().count | addPluralS }} @if (samplesSex().length) { (Sex: |
76 | | - @for (sex of samplesSex(); track sex.value; let last = $last) { {{ |
77 | | - sex.count }} {{ sex.value }}{{ last ? ')' : ', ' }} } } |
78 | | - </p> |
79 | | - <p> |
80 | | - <strong>{{ samplesTissues().length }}</strong> |
81 | | - Tissue{{ samplesTissues().length | addPluralS }} |
| 75 | + samplesSummary().count | addPluralS |
| 76 | + }} |
| 77 | + @if (samplesSex().length) { |
| 78 | + (Sex: |
| 79 | + @for (sex of samplesSex(); track sex.value; let last = $last) { |
| 80 | + {{ sex.count }} {{ sex.value }}{{ last ? ')' : ', ' }} |
| 81 | + } |
| 82 | + } |
82 | 83 | </p> |
83 | 84 | @if (samplesTissues().length > 0) { |
84 | | - <app-summary-badges [data]="samplesTissues()" /> |
| 85 | + <p> |
| 86 | + <strong>{{ samplesTissues().length }}</strong> |
| 87 | + Tissue{{ samplesTissues().length | addPluralS }} |
| 88 | + </p> |
| 89 | + <app-summary-badges [data]="samplesTissues()" /> |
85 | 90 | } |
86 | | - <p> |
87 | | - <strong>{{ samplesPhenotypes().length }}</strong> |
88 | | - Phenotypic Feature{{ samplesPhenotypes().length | addPluralS }} |
89 | | - </p> |
90 | 91 | @if (samplesPhenotypes().length > 0) { |
91 | | - <app-summary-badges [data]="samplesPhenotypes()" /> |
| 92 | + <p> |
| 93 | + <strong>{{ samplesPhenotypes().length }}</strong> |
| 94 | + Phenotypic Feature{{ samplesPhenotypes().length | addPluralS }} |
| 95 | + </p> |
| 96 | + <app-summary-badges [data]="samplesPhenotypes()" /> |
92 | 97 | } |
93 | 98 | </div> |
94 | 99 | </div> |
|
101 | 106 | <div class="*:mb-0.5"> |
102 | 107 | <strong>File Summary:</strong> |
103 | 108 | <p> |
104 | | - <strong>{{ filesSummary().count }}</strong> File{{ filesSummary().count | |
105 | | - addPluralS }} |
| 109 | + <strong>{{ filesSummary().count }}</strong> File{{ |
| 110 | + filesSummary().count | addPluralS |
| 111 | + }} |
106 | 112 | </p> |
107 | 113 | @if (filesSummary().count > 0) { |
108 | | - <app-summary-badges [data]="filesFormats()" /> |
| 114 | + <app-summary-badges [data]="filesFormats()" /> |
109 | 115 | } |
110 | 116 | </div> |
111 | 117 | </div> |
|
118 | 124 | <strong>Experiments Summary:</strong> |
119 | 125 | <p> |
120 | 126 | <strong>{{ experimentsSummary().count }}</strong> Experiment{{ |
121 | | - experimentsSummary().count | addPluralS }} |
122 | | - </p> |
123 | | - <p> |
124 | | - <strong>{{ experimentsPlatforms().length }} </strong> |
125 | | - Platform{{ experimentsPlatforms().length | addPluralS }} |
| 127 | + experimentsSummary().count | addPluralS |
| 128 | + }} |
126 | 129 | </p> |
127 | 130 | @if (experimentsPlatforms().length > 0) { |
128 | | - <app-summary-badges [data]="experimentsPlatforms()" /> |
| 131 | + <p> |
| 132 | + <strong>{{ experimentsPlatforms().length }} </strong> |
| 133 | + Platform{{ experimentsPlatforms().length | addPluralS }} |
| 134 | + </p> |
| 135 | + <app-summary-badges [data]="experimentsPlatforms()" /> |
129 | 136 | } |
130 | 137 | </div> |
131 | 138 | </div> |
|
0 commit comments