From efec72e7e6939985b073890d557dc1eefb0f3649 Mon Sep 17 00:00:00 2001 From: Milad Raeisi Date: Mon, 12 Aug 2024 08:34:11 +0400 Subject: [PATCH] Update Penalties.razor --- src/Angor/Client/Pages/Penalties.razor | 177 +++++++++++++------------ 1 file changed, 94 insertions(+), 83 deletions(-) diff --git a/src/Angor/Client/Pages/Penalties.razor b/src/Angor/Client/Pages/Penalties.razor index 7680ae58..91d3ce31 100644 --- a/src/Angor/Client/Pages/Penalties.razor +++ b/src/Angor/Client/Pages/Penalties.razor @@ -11,6 +11,7 @@ @inject ILogger Logger; @inherits BaseComponent + @if (!hasWallet) { @@ -18,99 +19,109 @@ return; } -
-

View Penalties

- - - @if (firstTimeRefreshSpinner && refreshSpinner) - { -
-
-
- } - else - { -
-
- } +
+ - @if (!penaltyProjects.Any()) - { -

No penalties found...

- } - else - { - -
- -
-
-
-
-
-
Penalties Details
-
-
-
-
-
- - - - - - - - - - @foreach (var penalty in penaltyProjects) + + + +@if (!penaltyProjects.Any()) +{ +
+
+
+ + + + No penalties found +
+
+
+} +else +{ + + +
+
+
+
+ + + +
+
+ Penalties Details +
+
+
+
+
Project IDAmount in PenaltyDays Left
+ + + + + + + + + @foreach (var penalty in penaltyProjects) + { + + + + - - - - + if (penalty.IsReleased) + { + + } + else + { + + } } - -
Project IDAmount in PenaltyDays Left
@penalty.ProjectIdentifier@penalty.Amount @network.CoinTicker + @if (penalty.IsExpired) { -
@penalty.ProjectIdentifier@penalty.Amount @network.CoinTicker - @if (penalty.IsExpired) - { - if (penalty.IsReleased) - { - - } - else - { - - } - } - else - { - - } -
-
-
-
+ else + { + + } + + + } + +
- -
- } + +} + @code { private List penaltyProjects = new(); // Assuming this is the model name private bool hasWallet = true; // Placeholder, actual value should come from your backend