From 5941c102b931133f78078886c63fb2a1e731f318 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 7 Jul 2017 01:26:16 +0100 Subject: [PATCH] display address balance before received / sent --- src/Template/Main/address.ctp | 12 ++++++------ src/Template/Main/claims.ctp | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Template/Main/address.ctp b/src/Template/Main/address.ctp index 04057fd..08285c0 100644 --- a/src/Template/Main/address.ctp +++ b/src/Template/Main/address.ctp @@ -125,21 +125,21 @@
+
+
Balance (LBC)
+
Amount->format($balanceAmount) ?>
+
+
Received (LBC)
Amount->format($totalReceived) ?>
-
+
Sent (LBC)
Amount->format($totalSent) ?>
-
-
Balance (LBC)
-
Amount->format($balanceAmount) ?>
-
-
diff --git a/src/Template/Main/claims.ctp b/src/Template/Main/claims.ctp index a304ad1..21d6fd0 100644 --- a/src/Template/Main/claims.ctp +++ b/src/Template/Main/claims.ctp @@ -42,7 +42,7 @@ $a = ['purple', 'orange', 'blue', 'teal', 'green', 'yellow']; $autoThumbText = ''; $link = $claim->Name; if (isset($claim->Publisher->Name)) { - $link = $claim->Publisher->Name . '/' . $link; + $link = urlencode($claim->Publisher->Name) . '/' . $link; } $link = 'lbry://' . $link; if ($claim->ClaimType == 1) { $autoThumbText = strtoupper(substr($claim->Name, 1, min( strlen($claim->Name), 10 ))); } else { @@ -164,7 +164,7 @@ if (strlen(trim($desc)) == 0) { $autoThumbText = ''; $link = $claim->Name; if (isset($claim->Publisher->Name)) { - $link = $claim->Publisher->Name . '/' . $link; + $link = urlencode($claim->Publisher->Name) . '/' . $link; } $link = 'lbry://' . $link; $cost = ''; @@ -287,7 +287,7 @@ if (strlen(trim($desc)) == 0) { $autoThumbText = ''; $link = $claim->Name; if (isset($claim->Publisher->Name)) { - $link = $claim->Publisher->Name . '/' . $link; + $link = urlencode($claim->Publisher->Name) . '/' . $link; } $link = 'lbry://' . $link;