From 0603d5d6eabd62a5460f858f09c870e079e7e6bd Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Wed, 15 Apr 2015 14:08:11 +0200 Subject: [PATCH] [CLEANUP] Wallet Info templates --- templates/bootstrap/admin/wallet/accounts.tpl | 66 +++++++ templates/bootstrap/admin/wallet/balance.tpl | 46 +++++ templates/bootstrap/admin/wallet/default.tpl | 182 +----------------- templates/bootstrap/admin/wallet/peers.tpl | 31 +++ templates/bootstrap/admin/wallet/status.tpl | 32 +++ 5 files changed, 179 insertions(+), 178 deletions(-) create mode 100644 templates/bootstrap/admin/wallet/accounts.tpl create mode 100644 templates/bootstrap/admin/wallet/balance.tpl create mode 100644 templates/bootstrap/admin/wallet/peers.tpl create mode 100644 templates/bootstrap/admin/wallet/status.tpl diff --git a/templates/bootstrap/admin/wallet/accounts.tpl b/templates/bootstrap/admin/wallet/accounts.tpl new file mode 100644 index 00000000..7b7d2249 --- /dev/null +++ b/templates/bootstrap/admin/wallet/accounts.tpl @@ -0,0 +1,66 @@ +
+
+
+
+ Wallet Accounts +
+
+
+{foreach key=NAME item=VALUE from=$ACCOUNTS} +
+
+ Account: {$NAME|default:"Default"} +
+
+
+
+
+ Balance Info +
+
+ + + + + +
Balance{$VALUE|number_format:"8"}
+
+
+
+ +{foreach key=ACCOUNT item=ADDRESS from=$ACCOUNTADDRESSES} +{if $ACCOUNT == $NAME} + +
+
+
+ Addresses assigned to Account {$ACCOUNT|default:"Default"} +
+
+ + +{foreach from=$ACCOUNTADDRESSES[$ACCOUNT] key=ACCOUNT1 item=ADDRESS1} +{if $ADDRESS1@iteration is even by 1} + + +{else} + + +{/if} +{/foreach} + +
{$ADDRESS1}
{$ADDRESS1}
+{/if} +{/foreach} +
+
+
+
+
+
+{/foreach} +
+
+
+
+
diff --git a/templates/bootstrap/admin/wallet/balance.tpl b/templates/bootstrap/admin/wallet/balance.tpl new file mode 100644 index 00000000..90458b38 --- /dev/null +++ b/templates/bootstrap/admin/wallet/balance.tpl @@ -0,0 +1,46 @@ +
+
+
+ Balance Summary +
+
+ + + + + + + + + + + + + +{if $NEWMINT >= 0} + + + {if $GLOBAL.config.getbalancewithunconfirmed} + + {else} + + {/if} + + + + + +{else} + + + {if $GLOBAL.config.getbalancewithunconfirmed} + + {else} + + {/if} + +{/if} +
Wallet Balance{$BALANCE|number_format:"8"}
Locked for users{$LOCKED|number_format:"8"}
Unconfirmed{$UNCONFIRMED|number_format:"8"}
Liquid Assets{($BALANCE - $LOCKED - $UNCONFIRMED + $NEWMINT|default:"0")|number_format:"8"}{($BALANCE - $LOCKED + $NEWMINT|default:"0")|number_format:"8"}
PoS New Mint{$NEWMINT|number_format:"8"}
Liquid Assets{($BALANCE - $LOCKED - $UNCONFIRMED)|number_format:"8"}{($BALANCE - $LOCKED)|number_format:"8"}
+
+
+
diff --git a/templates/bootstrap/admin/wallet/default.tpl b/templates/bootstrap/admin/wallet/default.tpl index 47182dc5..8be01f41 100644 --- a/templates/bootstrap/admin/wallet/default.tpl +++ b/templates/bootstrap/admin/wallet/default.tpl @@ -1,180 +1,6 @@
-
-
-
- Balance Summary -
-
- - - - - - - - - - - - - -{if $NEWMINT >= 0} - - - {if $GLOBAL.config.getbalancewithunconfirmed} - - {else} - - {/if} - - - - - -{else} - - - {if $GLOBAL.config.getbalancewithunconfirmed} - - {else} - - {/if} - -{/if} -
Wallet Balance{$BALANCE|number_format:"8"}
Locked for users{$LOCKED|number_format:"8"}
Unconfirmed{$UNCONFIRMED|number_format:"8"}
Liquid Assets{($BALANCE - $LOCKED - $UNCONFIRMED + $NEWMINT|default:"0")|number_format:"8"}{($BALANCE - $LOCKED + $NEWMINT|default:"0")|number_format:"8"}
PoS New Mint{$NEWMINT|number_format:"8"}
Liquid Assets{($BALANCE - $LOCKED - $UNCONFIRMED)|number_format:"8"}{($BALANCE - $LOCKED)|number_format:"8"}
-
-
-
- -
-
-
- Wallet Status -
-
- - - - - - - - - - - - - - - - - - - - - -
VersionProtocol VersionWallet VersionPeersStatusBlocksAccounts
{$COININFO.version|default:""}{$COININFO.protocolversion|default:""}{$COININFO.walletversion|default:""}{$COININFO.connections|default:""}{$COININFO.errors|default:"OK"}{$COININFO.blocks|default:"0"}{$ADDRESSCOUNT}
-
-
-
-
- -
-
-
-
- Peer Information -
-
- - - - - - - - - - - -{foreach key=KEY item=ARRAY from=$PEERINFO} - - - - - - - -{/foreach} - -
HostProtocolIdentityConnectedTraffic
{$ARRAY['addr']}{$ARRAY['version']}{$ARRAY['subver']}{$ARRAY['conntime']|date_format:$GLOBAL.config.date}{(($ARRAY['bytessent'] + $ARRAY['bytesrecv']) / 1024 / 1024)|number_format:"3"} MB
-
-
- -
-
-
-
- Wallet Accounts -
-
-
-{foreach key=NAME item=VALUE from=$ACCOUNTS} -
-
- Account: {$NAME|default:"Default"} -
-
-
-
-
- Balance Info -
-
- - - - - -
Balance{$VALUE|number_format:"8"}
-
-
-
- -{foreach key=ACCOUNT item=ADDRESS from=$ACCOUNTADDRESSES} -{if $ACCOUNT == $NAME} - -
-
-
- Addresses assigned to Account {$ACCOUNT|default:"Default"} -
-
- - -{foreach from=$ACCOUNTADDRESSES[$ACCOUNT] key=ACCOUNT1 item=ADDRESS1} -{if $ADDRESS1@iteration is even by 1} - - -{else} - - -{/if} -{/foreach} - -
{$ADDRESS1}
{$ADDRESS1}
-{/if} -{/foreach} -
-
-
-
-
-
-{/foreach} -
-
-
-
-
+ {include file="admin/wallet/balance.tpl"} + {include file="admin/wallet/status.tpl"} + {include file="admin/wallet/peers.tpl"} + {include file="admin/wallet/accounts.tpl"}
diff --git a/templates/bootstrap/admin/wallet/peers.tpl b/templates/bootstrap/admin/wallet/peers.tpl new file mode 100644 index 00000000..f98f6438 --- /dev/null +++ b/templates/bootstrap/admin/wallet/peers.tpl @@ -0,0 +1,31 @@ +
+
+
+
+ Peer Information +
+
+ + + + + + + + + + + +{foreach key=KEY item=ARRAY from=$PEERINFO} + + + + + + + +{/foreach} + +
HostProtocolIdentityConnectedTraffic
{$ARRAY['addr']}{$ARRAY['version']}{$ARRAY['subver']}{$ARRAY['conntime']|date_format:$GLOBAL.config.date}{(($ARRAY['bytessent'] + $ARRAY['bytesrecv']) / 1024 / 1024)|number_format:"3"} MB
+
+
diff --git a/templates/bootstrap/admin/wallet/status.tpl b/templates/bootstrap/admin/wallet/status.tpl new file mode 100644 index 00000000..87566e13 --- /dev/null +++ b/templates/bootstrap/admin/wallet/status.tpl @@ -0,0 +1,32 @@ +
+
+
+ Wallet Status +
+
+ + + + + + + + + + + + + + + + + + + + + +
VersionProtocol VersionWallet VersionPeersStatusBlocksAccounts
{$COININFO.version|default:""}{$COININFO.protocolversion|default:""}{$COININFO.walletversion|default:""}{$COININFO.connections|default:""}{$COININFO.errors|default:"OK"}{$COININFO.blocks|default:"0"}{$ADDRESSCOUNT}
+
+
+
+