Commit 8c9f660c authored by Tifenn Guillas's avatar Tifenn Guillas
Browse files

Merge branch 'link-rederers' into 'develop'

Fix external and internal links and buttons

See merge request !38
parents d51e379e eb906171
Pipeline #1351 passed with stages
in 6 minutes and 56 seconds
......@@ -35,11 +35,22 @@
class="img-fluid">
</button>
</div>
<div *ngSwitchCase="'href'">
<div *ngSwitchCase="'ext-link'">
<a [href]="getAttributeUriAction(attribute.name, datum[attribute.label])"
target="_blank">
{{ datum[attribute.name] }}</a>
</div>
<div *ngSwitchCase="'int-link'">
<a [routerLink]="getAttributeUriAction(attribute.name, datum[attribute.label])">
{{ datum[attribute.name] }}</a>
</div>
<div *ngSwitchCase="'btn'">
<div *ngSwitchCase="'ext-btn'">
<a [href]="getAttributeUriAction(attribute.name, datum[attribute.label])"
target="_blank"
class="btn btn-outline-primary btn-sm">
{{ datum[attribute.label] }}</a>
</div>
<div *ngSwitchCase="'int-btn'">
<a [routerLink]="getAttributeUriAction(attribute.name, datum[attribute.label])"
class="btn btn-outline-primary btn-sm">
{{ datum[attribute.label] }}</a>
......@@ -52,6 +63,7 @@
</div>
<div *ngSwitchCase="'download'">
<a [href]="getAttributeUriAction(attribute.name, datum[attribute.label])"
target="_blank"
class="btn btn-outline-primary btn-sm">
<i class="fa fa-download" aria-hidden="true"></i>
</a>
......
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