Change tooltip text "ago" -> "earlier"
This commit is contained in:
		
							parent
							
								
									2dc6f6ff5a
								
							
						
					
					
						commit
						a04d685f1a
					
				| @ -8,10 +8,8 @@ | ||||
|     }} | ||||
|   </span> | ||||
|   <ng-template #noblockconversion> | ||||
|     <ng-container *ngIf="!forceBlockConversion; else zeroValue"> | ||||
|       <span class="fiat">{{ addPlus && satoshis >= 0 ? '+' : '' }}{{ (conversions[currency] > -1 ? conversions[currency] : 0) * satoshis / 100000000 | fiatCurrency : digitsInfo : currency }} | ||||
|       </span> | ||||
|     </ng-container> | ||||
|     <span class="fiat" *ngIf="!forceBlockConversion; else zeroValue">{{ addPlus && satoshis >= 0 ? '+' : '' }}{{ (conversions[currency] > -1 ? conversions[currency] : 0) * satoshis / 100000000 | fiatCurrency : digitsInfo : currency }} | ||||
|     </span> | ||||
|   </ng-template> | ||||
|   <ng-template #zeroValue> | ||||
|     <span class="fiat">{{ 0 | fiatCurrency : digitsInfo : currency }}</span> | ||||
|  | ||||
| @ -48,10 +48,10 @@ | ||||
|           <span *ngSwitchCase="'input'">  | ||||
|             <ng-container *ngIf="line.status?.block_height"> | ||||
|                 <ng-container *ngIf="line.blockHeight; else noBlockHeight"> | ||||
|                   <ng-container *ngTemplateOutlet="nBlocksAgo; context:{n: line.blockHeight - line?.status?.block_height, connector: false}"></ng-container> | ||||
|                   <ng-container *ngTemplateOutlet="nBlocksEarlier; context:{n: line.blockHeight - line?.status?.block_height, connector: false}"></ng-container> | ||||
|               </ng-container> | ||||
|               <ng-template #noBlockHeight> | ||||
|                 <ng-container *ngTemplateOutlet="nBlocksAgo; context:{n: chainTip + 1 - line?.status?.block_height, connector: false}"></ng-container> | ||||
|                 <ng-container *ngTemplateOutlet="nBlocksEarlier; context:{n: chainTip + 1 - line?.status?.block_height, connector: false}"></ng-container> | ||||
|               </ng-template> | ||||
|             </ng-container> | ||||
|           </span> | ||||
| @ -76,10 +76,10 @@ | ||||
|             <p *ngSwitchCase="'input'"><span i18n="transaction.output">Output</span>  #{{ line.vout + 1 }} | ||||
|               <ng-container *ngIf="line.status?.block_height"> | ||||
|                 <ng-container *ngIf="line.blockHeight; else noBlockHeight"> | ||||
|                   <ng-container *ngTemplateOutlet="nBlocksAgo; context:{n: line.blockHeight - line?.status?.block_height, connector: true}"></ng-container> | ||||
|                   <ng-container *ngTemplateOutlet="nBlocksEarlier; context:{n: line.blockHeight - line?.status?.block_height, connector: true}"></ng-container> | ||||
|                 </ng-container> | ||||
|                 <ng-template #noBlockHeight> | ||||
|                   <ng-container *ngTemplateOutlet="nBlocksAgo; context:{n: chainTip + 1 - line?.status?.block_height, connector: true}"></ng-container> | ||||
|                   <ng-container *ngTemplateOutlet="nBlocksEarlier; context:{n: chainTip + 1 - line?.status?.block_height, connector: true}"></ng-container> | ||||
|                 </ng-template> | ||||
|               </ng-container> | ||||
|             </p> | ||||
| @ -119,8 +119,8 @@ | ||||
|   {{ item.displayValue / pow(10, assetsMinimal[item.asset][3]) | number: '1.' + assetsMinimal[item.asset][3] + '-' + assetsMinimal[item.asset][3] }} <span class="symbol">{{ assetsMinimal[item.asset][1] }}</span> | ||||
| </ng-template> | ||||
| 
 | ||||
| <ng-template #oneBlockAgo> | ||||
|   <span i18n="shared.one-block-ago">1 block ago</span> | ||||
| <ng-template #oneBlockEarlier> | ||||
|   <span i18n="shared.one-block-earlier">1 block earlier</span> | ||||
| </ng-template> | ||||
| 
 | ||||
| <ng-template #oneBlockLater> | ||||
| @ -131,13 +131,13 @@ | ||||
|   <span i18n="shared.in-the-same-block">in the same block</span> | ||||
| </ng-template> | ||||
| 
 | ||||
| <ng-template #nBlocksAgo let-n="n" let-connector="connector"> | ||||
| <ng-template #nBlocksEarlier let-n="n" let-connector="connector"> | ||||
|   (<span *ngIf="!connector">prevout </span> | ||||
|   <ng-container *ngIf="n > 1"> | ||||
|     <span>{{ n }} <ng-container i18n="shared.n-blocks-ago">blocks ago</ng-container>)</span> | ||||
|     <span>{{ n }} <ng-container i18n="shared.n-blocks-earlier">blocks earlier</ng-container>)</span> | ||||
|   </ng-container> | ||||
|   <ng-container *ngIf="n === 1"> | ||||
|     <span><ng-container *ngTemplateOutlet="oneBlockAgo"></ng-container>)</span> | ||||
|     <span><ng-container *ngTemplateOutlet="oneBlockEarlier"></ng-container>)</span> | ||||
|   </ng-container> | ||||
|   <ng-container *ngIf="n === 0"> | ||||
|     <span><ng-container *ngTemplateOutlet="inTheSameBlock"></ng-container>)</span> | ||||
|  | ||||
| @ -7,7 +7,7 @@ | ||||
|   padding: 10px 15px; | ||||
|   text-align: left; | ||||
|   pointer-events: none; | ||||
|   max-width: 300px; | ||||
|   max-width: 350px; | ||||
| 
 | ||||
|   p { | ||||
|     margin: 0; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user