|
| 1 | +use super::format_sats_si; |
1 | 2 | use crate::models::{Donation, Location, NfcCard, Photo, ScanWithUser, UserRole}; |
2 | 3 | use crate::templates::components::{ |
3 | 4 | donation_invoice_markup, donation_invoice_script, DonationInvoiceConfig, |
@@ -243,14 +244,14 @@ pub fn location_detail( |
243 | 244 | div class="card-brutal-inset p-4" { |
244 | 245 | div class="label-brutal text-xs mb-2" { "AVAILABLE SATS" } |
245 | 246 | div class="text-2xl font-black text-highlight orange" { |
246 | | - (available_sats) " " |
| 247 | + (format_sats_si(available_sats)) " " |
247 | 248 | i class="fa-solid fa-bolt" {} |
248 | 249 | } |
249 | 250 | } |
250 | 251 | div class="card-brutal-inset p-4" { |
251 | 252 | div class="label-brutal text-xs mb-2" { "POOL BALANCE" } |
252 | 253 | div class="text-2xl font-black text-secondary" { |
253 | | - (pool_sats) " " |
| 254 | + (format_sats_si(pool_sats)) " " |
254 | 255 | i class="fa-solid fa-bolt" {} |
255 | 256 | } |
256 | 257 | } |
@@ -361,7 +362,7 @@ pub fn location_detail( |
361 | 362 | div { |
362 | 363 | div class="label-brutal text-xs mb-1" { "POOL BALANCE" } |
363 | 364 | div class="text-3xl font-black text-highlight orange" { |
364 | | - (pool_sats) " " |
| 365 | + (format_sats_si(pool_sats)) " " |
365 | 366 | i class="fa-solid fa-bolt" {} |
366 | 367 | } |
367 | 368 | } |
@@ -431,7 +432,7 @@ pub fn location_detail( |
431 | 432 | } |
432 | 433 | td class="py-3 px-4 text-right mono" { |
433 | 434 | span class="text-highlight orange font-black" { |
434 | | - (donation.amount_sats()) |
| 435 | + (format_sats_si(donation.amount_sats())) |
435 | 436 | } |
436 | 437 | " " |
437 | 438 | i class="fa-solid fa-bolt text-highlight orange" {} |
@@ -475,7 +476,7 @@ pub fn location_detail( |
475 | 476 | td class="py-3 px-4 text-right" { |
476 | 477 | @if scan.is_claimed() { |
477 | 478 | span class="text-highlight orange font-black" { |
478 | | - (scan.sats_claimed()) |
| 479 | + (format_sats_si(scan.sats_claimed())) |
479 | 480 | " " |
480 | 481 | i class="fa-solid fa-bolt" {} |
481 | 482 | } |
@@ -623,7 +624,7 @@ pub fn location_detail( |
623 | 624 | "#, |
624 | 625 | location.longitude, location.latitude, |
625 | 626 | location.longitude, location.latitude, |
626 | | - location.name, available_sats |
| 627 | + location.name, format_sats_si(available_sats) |
627 | 628 | ))) |
628 | 629 |
|
629 | 630 | // Photo upload script - auto-upload on file selection |
|
0 commit comments