From bd57e048e6b2df26a6dab1f7bd6fd49b89b30910 Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Sat, 22 Mar 2014 12:31:37 +0100 Subject: [PATCH] [UPDATE] style fixes --- public/site_assets/bootstrap/css/mpos.css | 4 +- .../admin/reports/earnings_report.tpl | 78 +++++++++---------- .../bootstrap/admin/transactions/default.tpl | 38 ++++----- .../bootstrap/admin/user/default.tpl | 56 ++++++------- .../templates/bootstrap/dashboard/js/api.tpl | 4 +- .../dashboard/overview/_with_price_graph.tpl | 38 +++++---- .../overview/_without_price_graph.tpl | 32 ++++---- .../round_statistics/pplns/round.tpl | 38 ++++----- .../dashboard/round_statistics/pps/round.tpl | 16 ++-- .../dashboard/round_statistics/prop/round.tpl | 38 ++++----- scripts/51_percent_check.php | 0 11 files changed, 176 insertions(+), 166 deletions(-) mode change 100755 => 100644 scripts/51_percent_check.php diff --git a/public/site_assets/bootstrap/css/mpos.css b/public/site_assets/bootstrap/css/mpos.css index 96422900..9309a496 100644 --- a/public/site_assets/bootstrap/css/mpos.css +++ b/public/site_assets/bootstrap/css/mpos.css @@ -354,7 +354,7 @@ p.overview { } span.overview { - font-size: 20px; + font-size: 14px; font-weight: bold; } @@ -460,7 +460,7 @@ span.spark-25 { } p.up { - margin: -14px 0px 0px 0px; + margin: -10px 0px 0px 0px; } div.up { diff --git a/public/templates/bootstrap/admin/reports/earnings_report.tpl b/public/templates/bootstrap/admin/reports/earnings_report.tpl index b3e7b6ba..00cab4f4 100644 --- a/public/templates/bootstrap/admin/reports/earnings_report.tpl +++ b/public/templates/bootstrap/admin/reports/earnings_report.tpl @@ -9,21 +9,21 @@ - - - - - - + + + + + + {if $GLOBAL.config.payout_system == 'pplns'} - - - - - - + + + + + + {/if} - + @@ -55,42 +55,42 @@ {assign var="usertotalshares" value=$usertotalshares+$REPORTDATA[txs].shares} {/if} - - - - - - + + + + + + {if $GLOBAL.config.payout_system == 'pplns'} - - - - - - + + + + + {/if} - + {assign var=percentage1 value=0} {/section} - - - - - - + + + + + + {if $GLOBAL.config.payout_system == 'pplns'} - - - - - - + + + + + {/if} - + {assign var=percentage2 value=0} diff --git a/public/templates/bootstrap/admin/transactions/default.tpl b/public/templates/bootstrap/admin/transactions/default.tpl index 88d7dfdc..d7f15295 100644 --- a/public/templates/bootstrap/admin/transactions/default.tpl +++ b/public/templates/bootstrap/admin/transactions/default.tpl @@ -83,25 +83,25 @@
BlockRound SharesRound ValidInvalidInvalid %Round %BlockRound SharesRound ValidInvalidInvalid %Round %PPLNS SharesPPLNS ValidInvalidInvalid %PPLNS %VariancePPLNS SharesPPLNS ValidInvalidInvalid %PPLNS %VarianceAmountAmount
{$REPORTDATA[txs].height|default:"0"}{$REPORTDATA[txs].shares|default:"0"}{$REPORTDATA[txs]['user'].valid|number_format|default:"0"}{$REPORTDATA[txs]['user'].invalid|number_format|default:"0"}{if $REPORTDATA[txs]['user'].invalid > 0 }{($REPORTDATA[txs]['user'].invalid / $REPORTDATA[txs]['user'].valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}{if $REPORTDATA[txs]['user'].valid > 0 }{(( 100 / $REPORTDATA[txs].shares) * $REPORTDATA[txs]['user'].valid)|number_format:"2"}{else}0.00{/if}{$REPORTDATA[txs].height|default:"0"}{$REPORTDATA[txs].shares|default:"0"}{$REPORTDATA[txs]['user'].valid|number_format|default:"0"}{$REPORTDATA[txs]['user'].invalid|number_format|default:"0"}{if $REPORTDATA[txs]['user'].invalid > 0 }{($REPORTDATA[txs]['user'].invalid / $REPORTDATA[txs]['user'].valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}{if $REPORTDATA[txs]['user'].valid > 0 }{(( 100 / $REPORTDATA[txs].shares) * $REPORTDATA[txs]['user'].valid)|number_format:"2"}{else}0.00{/if}{$REPORTDATA[txs].pplns_shares|number_format|default:"0"}{$REPORTDATA[txs]['user'].pplns_valid|number_format|default:"0"}{$REPORTDATA[txs]['user'].pplns_invalid|number_format|default:"0"}{if $REPORTDATA[txs]['user'].pplns_invalid > 0 && $REPORTDATA[txs]['user'].pplns_valid > 0 }{($REPORTDATA[txs]['user'].pplns_invalid / $REPORTDATA[txs]['user'].pplns_valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}{if $REPORTDATA[txs].shares > 0 && $REPORTDATA[txs]['user'].pplns_valid > 0}{(( 100 / $REPORTDATA[txs].pplns_shares) * $REPORTDATA[txs]['user'].pplns_valid)|number_format:"2"|default:"0"}{else}0.00{/if}{if $REPORTDATA[txs]['user'].valid > 0 && $REPORTDATA[txs]['user'].pplns_valid > 0}{math assign="percentage1" equation=(100 / ((( 100 / $REPORTDATA[txs].shares) * $REPORTDATA[txs]['user'].valid) / (( 100 / $REPORTDATA[txs].pplns_shares) * $REPORTDATA[txs]['user'].pplns_valid)))}{else if $REPORTDATA[txs]['user'].pplns_valid == 0}{assign var=percentage1 value=0}{else}{assign var=percentage1 value=100}{/if} + {$REPORTDATA[txs].pplns_shares|number_format|default:"0"}{$REPORTDATA[txs]['user'].pplns_valid|number_format|default:"0"}{$REPORTDATA[txs]['user'].pplns_invalid|number_format|default:"0"}{if $REPORTDATA[txs]['user'].pplns_invalid > 0 && $REPORTDATA[txs]['user'].pplns_valid > 0 }{($REPORTDATA[txs]['user'].pplns_invalid / $REPORTDATA[txs]['user'].pplns_valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}{if $REPORTDATA[txs].shares > 0 && $REPORTDATA[txs]['user'].pplns_valid > 0}{(( 100 / $REPORTDATA[txs].pplns_shares) * $REPORTDATA[txs]['user'].pplns_valid)|number_format:"2"|default:"0"}{else}0.00{/if}{if $REPORTDATA[txs]['user'].valid > 0 && $REPORTDATA[txs]['user'].pplns_valid > 0}{math assign="percentage1" equation=(100 / ((( 100 / $REPORTDATA[txs].shares) * $REPORTDATA[txs]['user'].valid) / (( 100 / $REPORTDATA[txs].pplns_shares) * $REPORTDATA[txs]['user'].pplns_valid)))}{else if $REPORTDATA[txs]['user'].pplns_valid == 0}{assign var=percentage1 value=0}{else}{assign var=percentage1 value=100}{/if} {$percentage1|number_format:"2"|default:"0"}{$REPORTDATA[txs].user_credit|default:"0"|number_format:"8"}{$REPORTDATA[txs].user_credit|default:"0"|number_format:"8"}
Totals{$totalshares|number_format}{$totalvalid|number_format}{$totalinvalid|number_format}{if $totalinvalid > 0 && $totalvalid > 0 }{($totalinvalid / $totalvalid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}{if $usertotalshares > 0 && $totalvalid > 0}{(( 100 / $usertotalshares) * $totalvalid)|number_format:"2"|default:"0"}{else}0.00{/if}Totals{$totalshares|number_format}{$totalvalid|number_format}{$totalinvalid|number_format}{if $totalinvalid > 0 && $totalvalid > 0 }{($totalinvalid / $totalvalid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}{if $usertotalshares > 0 && $totalvalid > 0}{(( 100 / $usertotalshares) * $totalvalid)|number_format:"2"|default:"0"}{else}0.00{/if}{$pplnsshares|number_format}{$pplnsvalid|number_format}{$pplnsinvalid|number_format}{if $pplnsinvalid > 0 && $pplnsvalid > 0 }{($pplnsinvalid / $pplnsvalid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}{if $userpplnsshares > 0 && $pplnsvalid > 0}{(( 100 / $userpplnsshares) * $pplnsvalid)|number_format:"2"|default:"0"}{else}0.00{/if}{if $totalvalid > 0 && $pplnsvalid > 0}{math assign="percentage2" equation=(100 / ((( 100 / $usertotalshares) * $totalvalid) / (( 100 / $userpplnsshares) * $pplnsvalid)))}{else if $pplnsvalid == 0}{assign var=percentage2 value=0}{else}{assign var=percentage2 value=100}{/if} + {$pplnsshares|number_format}{$pplnsvalid|number_format}{$pplnsinvalid|number_format}{if $pplnsinvalid > 0 && $pplnsvalid > 0 }{($pplnsinvalid / $pplnsvalid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}{if $userpplnsshares > 0 && $pplnsvalid > 0}{(( 100 / $userpplnsshares) * $pplnsvalid)|number_format:"2"|default:"0"}{else}0.00{/if}{if $totalvalid > 0 && $pplnsvalid > 0}{math assign="percentage2" equation=(100 / ((( 100 / $usertotalshares) * $totalvalid) / (( 100 / $userpplnsshares) * $pplnsvalid)))}{else if $pplnsvalid == 0}{assign var=percentage2 value=0}{else}{assign var=percentage2 value=100}{/if} {$percentage2|number_format:"2"|default:"0"}{$amount|default:"0"|number_format:"8"}{$amount|default:"0"|number_format:"8"}
- - - - - - - - - + + + + + + + + + {section transaction $TRANSACTIONS} - - - - - + + + + - + {if ! $GLOBAL.website.transactionexplorer.disabled} - + {else} - + {/if} - - + + {/section} diff --git a/public/templates/bootstrap/admin/user/default.tpl b/public/templates/bootstrap/admin/user/default.tpl index 404cc7c1..6b0f532f 100644 --- a/public/templates/bootstrap/admin/user/default.tpl +++ b/public/templates/bootstrap/admin/user/default.tpl @@ -86,54 +86,54 @@
IDAccountDateTX TypeStatusPayment AddressTX #Block #AmountIDAccountDateTX TypeStatusPayment AddressTX #Block #Amount
{$TRANSACTIONS[transaction].id}{$TRANSACTIONS[transaction].username}{$TRANSACTIONS[transaction].timestamp}{$TRANSACTIONS[transaction].type} + {$TRANSACTIONS[transaction].id}{$TRANSACTIONS[transaction].username}{$TRANSACTIONS[transaction].timestamp}{$TRANSACTIONS[transaction].type} {if $TRANSACTIONS[transaction].type == 'Credit_PPS' OR $TRANSACTIONS[transaction].type == 'Fee_PPS' OR $TRANSACTIONS[transaction].type == 'Donation_PPS' OR @@ -113,14 +113,14 @@ {else if $TRANSACTIONS[transaction].confirmations == -1}Orphaned {else}Unconfirmed{/if} {$TRANSACTIONS[transaction].coin_address|truncate:20:"...":true:true}{$TRANSACTIONS[transaction].coin_address|truncate:20:"...":true:true}{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}{if $TRANSACTIONS[transaction].height == 0}n/a{else}{/if}{$TRANSACTIONS[transaction].height}{$TRANSACTIONS[transaction].amount|number_format:"8"}{if $TRANSACTIONS[transaction].height == 0}n/a{else}{/if}{$TRANSACTIONS[transaction].height}{$TRANSACTIONS[transaction].amount|number_format:"8"}
- - - - - + + + + + {if $GLOBAL.config.payout_system != 'pps'} - - + + {else} - + {/if} - - - - - - + + + + + + {nocache} {section name=user loop=$USERS|default} - - - - - + + + + + {if $GLOBAL.config.payout_system != 'pps'} - - + + {else} - + {/if} - - - - + + + - -
IDUsernameE-MailSharesHashrateIDUsernameE-MailSharesHashrateEst. DonationEst. PayoutEst. DonationEst. PayoutEst. 24 HoursEst. 24 HoursBalanceReg. DateLast LoginAdminLockedNo FeesBalanceReg. DateLast LoginAdminLockedNo Fees
{$USERS[user].id}{$USERS[user].username|escape}{$USERS[user].email|escape}{$USERS[user].shares.valid}{$USERS[user].hashrate}{$USERS[user].id}{$USERS[user].username|escape}{$USERS[user].email|escape}{$USERS[user].shares.valid}{$USERS[user].hashrate}{$USERS[user].estimates.donation|number_format:"8"}{$USERS[user].estimates.payout|number_format:"8"}{$USERS[user].estimates.donation|number_format:"8"}{$USERS[user].estimates.payout|number_format:"8"}{$USERS[user].estimates.hours24|number_format:"8"}{$USERS[user].estimates.hours24|number_format:"8"}{$USERS[user].balance|number_format:"8"}{$USERS[user].signup_timestamp|date_format:"%d/%m %H:%M:%S"}{$USERS[user].last_login|date_format:"%d/%m %H:%M:%S"} + {$USERS[user].balance|number_format:"8"}{$USERS[user].signup_timestamp|date_format:"%d/%m %H:%M:%S"}{$USERS[user].last_login|date_format:"%d/%m %H:%M:%S"} + + diff --git a/public/templates/bootstrap/dashboard/js/api.tpl b/public/templates/bootstrap/dashboard/js/api.tpl index 817ef322..d030403c 100644 --- a/public/templates/bootstrap/dashboard/js/api.tpl +++ b/public/templates/bootstrap/dashboard/js/api.tpl @@ -25,7 +25,8 @@ $(document).ready(function(){ height: '35', barWidth: 6, barSpacing: 2, - chartRangeMin: 0 + chartRangeMin: 0, + barColor: '#41fc41' }; // Sparkline options applied to line graphs @@ -35,6 +36,7 @@ $(document).ready(function(){ chartRangeMax: {/literal}{$GLOBAL.price}{literal} + 5, composite: false, lineColor: 'black', + fillColor: '#41fc41', chartRangeClip: true }; diff --git a/public/templates/bootstrap/dashboard/overview/_with_price_graph.tpl b/public/templates/bootstrap/dashboard/overview/_with_price_graph.tpl index 97dd578a..bb709c46 100644 --- a/public/templates/bootstrap/dashboard/overview/_with_price_graph.tpl +++ b/public/templates/bootstrap/dashboard/overview/_with_price_graph.tpl @@ -1,13 +1,14 @@
- +
-

My Hashrate

+

My Hashrate

- {$GLOBAL.userdata.hashrate|number_format:"2"} {$GLOBAL.hashunits.personal} + {$GLOBAL.userdata.hashrate|number_format:"2"} + {$GLOBAL.hashunits.personal}
@@ -18,13 +19,14 @@
- +
-

Pool Hashrate

+

Pool Hashrate

- {$GLOBAL.hashrate|number_format:"2"} {$GLOBAL.hashunits.pool} + {$GLOBAL.hashrate|number_format:"2"} + {$GLOBAL.hashunits.pool}
@@ -35,13 +37,14 @@
- +
-

My Sharerate

+

My Sharerate

- {$GLOBAL.userdata.sharerate|number_format:"2"} S/s + {$GLOBAL.userdata.sharerate|number_format:"2"} + S/s
@@ -52,11 +55,11 @@
- +
-

Pool Workers

+

Pool Workers

{$GLOBAL.workers}
@@ -69,13 +72,14 @@
- +
-

Net Hashrate

+

Net Hashrate

- {$GLOBAL.nethashrate|number_format:"2"} {$GLOBAL.hashunits.network} + {$GLOBAL.nethashrate|number_format:"2"} + {$GLOBAL.hashunits.network}
@@ -86,13 +90,13 @@
- +
-

{$GLOBAL.config.currency}/{$GLOBAL.config.price.currency}

+

{$GLOBAL.config.currency}/{$GLOBAL.config.price.currency}

- {$GLOBAL.price|default:"0"|number_format:"8"} + {$GLOBAL.price|default:"0"|number_format:"8"}
diff --git a/public/templates/bootstrap/dashboard/overview/_without_price_graph.tpl b/public/templates/bootstrap/dashboard/overview/_without_price_graph.tpl index a72e481e..3e9edfdd 100644 --- a/public/templates/bootstrap/dashboard/overview/_without_price_graph.tpl +++ b/public/templates/bootstrap/dashboard/overview/_without_price_graph.tpl @@ -1,13 +1,14 @@
- +
-

My Hashrate

+

My Hashrate

- {$GLOBAL.userdata.hashrate|number_format:"2"} {$GLOBAL.hashunits.personal} + {$GLOBAL.userdata.hashrate|number_format:"2"} + {$GLOBAL.hashunits.personal}
@@ -18,13 +19,14 @@
- +
-

Pool Hashrate

+

Pool Hashrate

- {$GLOBAL.hashrate|number_format:"2"} {$GLOBAL.hashunits.pool} + {$GLOBAL.hashrate|number_format:"2"} + {$GLOBAL.hashunits.pool}
@@ -35,13 +37,14 @@
- +
-

My Sharerate

+

My Sharerate

- {$GLOBAL.userdata.sharerate|number_format:"2"} S/s + {$GLOBAL.userdata.sharerate|number_format:"2"} + S/s
@@ -52,11 +55,11 @@
- +
-

Pool Workers

+

Pool Workers

{$GLOBAL.workers}
@@ -69,13 +72,14 @@
- +
-

Net Hashrate

+

Net Hashrate

- {$GLOBAL.nethashrate|number_format:"2"} {$GLOBAL.hashunits.network} + {$GLOBAL.nethashrate|number_format:"2"} + {$GLOBAL.hashunits.network}
diff --git a/public/templates/bootstrap/dashboard/round_statistics/pplns/round.tpl b/public/templates/bootstrap/dashboard/round_statistics/pplns/round.tpl index 893d8695..5cac279a 100644 --- a/public/templates/bootstrap/dashboard/round_statistics/pplns/round.tpl +++ b/public/templates/bootstrap/dashboard/round_statistics/pplns/round.tpl @@ -3,14 +3,14 @@
- +
-

{$NETWORK.block}

+

{$NETWORK.block}

-

Current Block

+

Current Block

@@ -18,14 +18,14 @@
- +
-

{$ESTIMATES.percent|number_format:"2"}%

+

{$ESTIMATES.percent|number_format:"2"}%

-

Of Expected Shares

+

Of Expected Shares

@@ -33,14 +33,14 @@
- +
-

{$GLOBAL.userdata.estimates.payout|number_format:"8"}

+

{$GLOBAL.userdata.estimates.payout|number_format:"8"}

-

{$GLOBAL.config.currency} Estimated Earnings

+

{$GLOBAL.config.currency} Estimated Earnings

@@ -48,14 +48,14 @@
- +
-

{$NETWORK.difficulty|number_format:"8"}

+

{$NETWORK.difficulty|number_format:"8"}

-

Difficulty

+

Difficulty

@@ -63,15 +63,15 @@
- +
-

{$NETWORK.EstNextDifficulty|number_format:"8"}

-

Change in {$NETWORK.BlocksUntilDiffChange} Blocks

+

{$NETWORK.EstNextDifficulty|number_format:"8"}

+

Change in {$NETWORK.BlocksUntilDiffChange} Blocks

-

Est Next Difficulty

+

Est Next Difficulty

@@ -79,14 +79,14 @@
- +
-

{$NETWORK.EstTimePerBlock|seconds_to_words}

+

{$NETWORK.EstTimePerBlock|seconds_to_words}

-

Est. Avg. Time per Block

+

Est. Avg. Time per Block

diff --git a/public/templates/bootstrap/dashboard/round_statistics/pps/round.tpl b/public/templates/bootstrap/dashboard/round_statistics/pps/round.tpl index aef81206..51dc6e01 100644 --- a/public/templates/bootstrap/dashboard/round_statistics/pps/round.tpl +++ b/public/templates/bootstrap/dashboard/round_statistics/pps/round.tpl @@ -2,7 +2,7 @@
-

{$GLOBAL.userdata.estimates.hours1|number_format:"12"}

+

{$GLOBAL.userdata.estimates.hours1|number_format:"12"}

{$GLOBAL.config.currency} 1 Hour Estimated Earnings

@@ -12,22 +12,22 @@
-

{$GLOBAL.userdata.estimates.days7|number_format:"12"}

+

{$GLOBAL.userdata.estimates.days7|number_format:"12"}

{$GLOBAL.config.currency} 7 Days Estimated Earnings

-

{$GLOBAL.userdata.estimates.days14|number_format:"12"}

+

{$GLOBAL.userdata.estimates.days14|number_format:"12"}

{$GLOBAL.config.currency} 14 Days Estimated Earnings

-

{$GLOBAL.userdata.estimates.days30|number_format:"12"}

+

{$GLOBAL.userdata.estimates.days30|number_format:"12"}

{$GLOBAL.config.currency} 30 Days Estimated Earnings

-

{$GLOBAL.ppsvalue}

+

{$GLOBAL.ppsvalue}

PPS Value

@@ -37,18 +37,18 @@
-

{$NETWORK.difficulty|number_format:"8"}

+

{$NETWORK.difficulty|number_format:"8"}

Difficulty

-

{$NETWORK.EstNextDifficulty|number_format:"8"}

+

{$NETWORK.EstNextDifficulty|number_format:"8"}

Change in {$NETWORK.BlocksUntilDiffChange} Blocks

Est Next Difficulty

-

{$NETWORK.EstTimePerBlock|seconds_to_words}

+

{$NETWORK.EstTimePerBlock|seconds_to_words}

Est. Avg. Time per Block

diff --git a/public/templates/bootstrap/dashboard/round_statistics/prop/round.tpl b/public/templates/bootstrap/dashboard/round_statistics/prop/round.tpl index dfce41e0..fa396da2 100644 --- a/public/templates/bootstrap/dashboard/round_statistics/prop/round.tpl +++ b/public/templates/bootstrap/dashboard/round_statistics/prop/round.tpl @@ -3,14 +3,14 @@
- +
-

{$NETWORK.block}

+

{$NETWORK.block}

-

Current Block

+

Current Block

@@ -18,14 +18,14 @@
- +
-

{$ESTIMATES.percent|number_format:"2"}%

+

{$ESTIMATES.percent|number_format:"2"}%

-

Of Expected Shares

+

Of Expected Shares

@@ -33,14 +33,14 @@
- +
-

{$GLOBAL.userdata.estimates.payout|number_format:"8"}

+

{$GLOBAL.userdata.estimates.payout|number_format:"8"}

-

{$GLOBAL.config.currency} Estimated Earnings

+

{$GLOBAL.config.currency} Estimated Earnings

@@ -48,14 +48,14 @@
- +
-

{$NETWORK.difficulty|number_format:"8"}

+

{$NETWORK.difficulty|number_format:"8"}

-

Difficulty

+

Difficulty

@@ -63,15 +63,15 @@
- +
-

{$NETWORK.EstNextDifficulty|number_format:"8"}

-

Change in {$NETWORK.BlocksUntilDiffChange} Blocks

+

{$NETWORK.EstNextDifficulty|number_format:"8"}

+

Change in {$NETWORK.BlocksUntilDiffChange} Blocks

-

Est Next Difficulty

+

Est Next Difficulty

@@ -79,14 +79,14 @@
- +
-

{$NETWORK.EstTimePerBlock|seconds_to_words}

+

{$NETWORK.EstTimePerBlock|seconds_to_words}

-

Est. Avg. Time per Block

+

Est. Avg. Time per Block

diff --git a/scripts/51_percent_check.php b/scripts/51_percent_check.php old mode 100755 new mode 100644