Skip to content

Commit 3add249

Browse files
frano-mMillenniumFalconMechanic
authored andcommitted
Hyperlink Analysis Protocol to corresponding Pipelines page in the portal. Resolves #950. (#961)
1 parent 33731c0 commit 3add249

15 files changed

+629
-166
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<ng-container *ngFor="let analysisProtocol of listAnalysisProtocols(); last as lastAnalysisProtocol">
2+
<ng-container [ngSwitch]="isAnalysisProtocolLinked(analysisProtocol)">
3+
<a href="{{getPipelineLink(analysisProtocol)}}" rel="noopener noreferrer" target="_blank" *ngSwitchDefault>{{analysisProtocol}}<span class="comma" *ngIf="!lastAnalysisProtocol">, </span></a>
4+
<span *ngSwitchCase="false">{{analysisProtocol}}<span class="comma" *ngIf="!lastAnalysisProtocol">, </span></span>
5+
</ng-container>
6+
</ng-container>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Human Cell Atlas
3+
* https://www.humancellatlas.org/
4+
*
5+
* Styles for analysis protocol pipeline linker.
6+
*/
7+
@import "../../site/theme/cgl.vars";
8+
9+
/* Tables */
10+
/* HCATableFilesComponent */
11+
/* HCATableProjectsComponent */
12+
/* HCATableSamplesComponent */
13+
:host-context(.hca-table) {
14+
15+
.comma {
16+
color: $hca-gray-dark;
17+
}
18+
}
19+
20+
/* Project detail page */
21+
/* HCAProjectComponent */
22+
:host-context(.explore-project) {
23+
24+
.comma {
25+
color: black;
26+
}
27+
}

0 commit comments

Comments
 (0)