Adding links to FAQ sections from TX page

This commit is contained in:
softsimon 2024-01-12 09:50:33 +07:00
parent 439177a78f
commit e9a67adf4f
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
4 changed files with 15 additions and 8 deletions

View File

@ -59,7 +59,7 @@
<td [innerHTML]="'&lrm;' + (block.weight | wuBytes: 2)"></td> <td [innerHTML]="'&lrm;' + (block.weight | wuBytes: 2)"></td>
</tr> </tr>
<tr *ngIf="auditAvailable"> <tr *ngIf="auditAvailable">
<td><ng-container i18n="latest-blocks.health">Health</ng-container> <a class="info-link" [routerLink]="['/docs/faq' | relativeUrl ]" fragment="what-is-block-health"><fa-icon [icon]="['fas', 'info-circle']" [fixedWidth]="true"></fa-icon></a></td> <td><ng-container i18n="latest-blocks.health">Health</ng-container>&nbsp;<a class="info-link" [routerLink]="['/docs/faq' | relativeUrl ]" fragment="what-is-block-health"><fa-icon [icon]="['fas', 'info-circle']" [fixedWidth]="true"></fa-icon></a></td>
<td> <td>
<span <span
class="health-badge badge" class="health-badge badge"

View File

@ -57,11 +57,6 @@
text-align: left; text-align: left;
} }
} }
.info-link {
color: rgba(255, 255, 255, 0.4);
margin-left: 5px;
}
.difference { .difference {
margin-left: 0.5em; margin-left: 0.5em;

View File

@ -299,7 +299,11 @@
<td [innerHTML]="'&lrm;' + (tx.weight / 4 | vbytes: 2)"></td> <td [innerHTML]="'&lrm;' + (tx.weight / 4 | vbytes: 2)"></td>
</tr> </tr>
<tr *ngIf="adjustedVsize != null"> <tr *ngIf="adjustedVsize != null">
<td i18n="transaction.adjusted-vsize|Transaction Adjusted VSize">Adjusted vsize</td> <td i18n="transaction.adjusted-vsize|Transaction Adjusted VSize">Adjusted vsize
<a class="info-link" [routerLink]="['/docs/faq/' | relativeUrl]" fragment="what-is-adjusted-vsize">
<fa-icon [icon]="['fas', 'info-circle']" [fixedWidth]="true"></fa-icon>
</a>
</td>
<td [innerHTML]="'&lrm;' + (adjustedVsize | vbytes: 2)"></td> <td [innerHTML]="'&lrm;' + (adjustedVsize | vbytes: 2)"></td>
</tr> </tr>
<tr> <tr>
@ -321,7 +325,11 @@
<td [innerHTML]="'&lrm;' + (tx.locktime | number)"></td> <td [innerHTML]="'&lrm;' + (tx.locktime | number)"></td>
</tr> </tr>
<tr *ngIf="sigops != null"> <tr *ngIf="sigops != null">
<td i18n="transaction.sigops|Transaction Sigops">Sigops</td> <td i18n="transaction.sigops|Transaction Sigops">Sigops
<a class="info-link" [routerLink]="['/docs/faq/' | relativeUrl]" fragment="what-are-sigops">
<fa-icon [icon]="['fas', 'info-circle']" [fixedWidth]="true"></fa-icon>
</a>
</td>
<td [innerHTML]="'&lrm;' + (sigops | number)"></td> <td [innerHTML]="'&lrm;' + (sigops | number)"></td>
</tr> </tr>
<tr> <tr>

View File

@ -1191,3 +1191,7 @@ app-global-footer {
line-height: 0.5; line-height: 0.5;
border-radius: 0.2rem; border-radius: 0.2rem;
} }
.info-link fa-icon {
color: rgba(255, 255, 255, 0.4);
}