Correcting tests. i18n strings and asset links.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="title-asset">
|
||||
<h1 i18n="asset|Liquid Asset page title">Asset</h1>
|
||||
<div class="tx-link">
|
||||
<a [routerLink]="['/asset/' | relativeUrl, assetString]">
|
||||
<a [routerLink]="['/assets/asset/' | relativeUrl, assetString]">
|
||||
<span class="d-inline d-lg-none">{{ assetString | shortenString : 24 }}</span>
|
||||
<span class="d-none d-lg-inline">{{ assetString }}</span>
|
||||
</a>
|
||||
@@ -20,7 +20,7 @@
|
||||
<table class="table table-borderless table-striped">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td i18n="asset.name|Liquid Asset name">Name</td>
|
||||
<td i18n="Asset name header">Name</td>
|
||||
<td class="assetName">{{ assetContract[2] }} ({{ assetContract[1] }})</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="main-title">
|
||||
<h2>{{ group.group.name }}</h2>
|
||||
|
||||
<div class="sub-title">Group of {{ group.group.assets.length | number }} assets</div>
|
||||
<div class="sub-title" i18n>Group of {{ group.group.assets.length | number }} assets</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<img class="assetIcon" [src]="'https://liquid.network/api/v1/asset/' + group.assets[0] + '/icon'">
|
||||
</a>
|
||||
<div class="title"><a [routerLink]="['/assets/asset-group', group.id]">{{ group.name }}</a></div>
|
||||
<div class="sub-title">Group of {{ group.assets.length | number }} assets</div>
|
||||
<div class="sub-title" i18n>Group of {{ group.assets.length | number }} assets</div>
|
||||
</ng-template>
|
||||
<ng-template #singleAsset>
|
||||
<a [routerLink]="['/assets/asset/', group.asset]">
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
<div class="nav-container">
|
||||
<ul class="nav nav-pills">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" [routerLink]="['/assets/featured']" routerLinkActive="active">Featured</a>
|
||||
<a class="nav-link" [routerLink]="['/assets/featured']" routerLinkActive="active" i18n>Featured</a>
|
||||
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" [routerLink]="['/assets/all']" routerLinkActive="active">All</a>
|
||||
<a class="nav-link" [routerLink]="['/assets/all']" routerLinkActive="active" i18n>All</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -105,11 +105,11 @@ export class SearchFormComponent implements OnInit {
|
||||
const matches = this.regexTransaction.exec(searchText);
|
||||
if (this.network === 'liquid' || this.network === 'liquidtestnet') {
|
||||
if (this.assets[matches[1]]) {
|
||||
this.navigate('/asset/', matches[1]);
|
||||
this.navigate('/assets/asset/', matches[1]);
|
||||
}
|
||||
this.electrsApiService.getAsset$(matches[1])
|
||||
.subscribe(
|
||||
() => { this.navigate('/asset/', matches[1]); },
|
||||
() => { this.navigate('/assets/asset/', matches[1]); },
|
||||
() => {
|
||||
this.electrsApiService.getBlock$(matches[1])
|
||||
.subscribe(
|
||||
|
||||
@@ -274,5 +274,5 @@
|
||||
<br />
|
||||
{{ assetsMinimal[item.asset][0] }}
|
||||
<br />
|
||||
<a [routerLink]="['/asset/' | relativeUrl, item.asset]">{{ item.asset | shortenString : 13 }}</a>
|
||||
<a [routerLink]="['/assets/asset/' | relativeUrl, item.asset]">{{ item.asset | shortenString : 13 }}</a>
|
||||
</ng-template>
|
||||
|
||||
Reference in New Issue
Block a user