From 493db31dcc5509023c24938f329a9eaa1f053332 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Thu, 12 Sep 2013 17:56:41 +0200 Subject: [PATCH] adding better colors for confirms/orphans/... --- public/site_assets/test/css/layout.css | 32 +++++++++++++++++++ .../test/account/transactions/default.tpl | 13 ++++---- .../test/admin/transactions/default.tpl | 11 +++---- .../test/statistics/blocks/default.tpl | 8 ++--- 4 files changed, 47 insertions(+), 17 deletions(-) diff --git a/public/site_assets/test/css/layout.css b/public/site_assets/test/css/layout.css index 41310e6b..cb61f289 100644 --- a/public/site_assets/test/css/layout.css +++ b/public/site_assets/test/css/layout.css @@ -836,3 +836,35 @@ color: #32510F; padding: 10px 0; text-indent: 40px; font-size: 14px;} + +/* Custom stuff */ +span.confirmed { + display: inline-block; + width: 60px; + font-size: 10px; + background: #e6efc2; + color:#264409; + padding: 2px 4px; + border:1px solid #c6d880; + border-radius: 4px; +} +span.orphan { + display: inline-block; + width: 60px; + font-size: 10px; + background: #ff9473; + color:#264409; + padding: 2px 4px; + border:1px solid #ff6342; + border-radius: 4px; +} +span.unconfirmed { + display: inline-block; + width: 60px; + font-size: 10px; + background: #ffce9c; + color:#264409; + padding: 2px 4px; + border:1px solid #ffb573; + border-radius: 4px; +} diff --git a/public/templates/test/account/transactions/default.tpl b/public/templates/test/account/transactions/default.tpl index 31d0db36..ab34012b 100644 --- a/public/templates/test/account/transactions/default.tpl +++ b/public/templates/test/account/transactions/default.tpl @@ -70,7 +70,7 @@ Account Date TX Type - Status + Status Payment Address Block # Amount @@ -83,7 +83,7 @@ {$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 @@ -91,10 +91,9 @@ $TRANSACTIONS[transaction].type == 'Debit_AP' OR $TRANSACTIONS[transaction].type == 'TXFee' OR $TRANSACTIONS[transaction].confirmations >= $GLOBAL.confirmations - }Confirmed - {else if $TRANSACTIONS[transaction].confirmations == -1}Orphaned - {else}Unconfirmed{/if} - ({$TRANSACTIONS[transaction].confirmations|default:"n/a"}) + }Confirmed + {else if $TRANSACTIONS[transaction].confirmations == -1}Orphaned + {else}Unconfirmed{/if} {$TRANSACTIONS[transaction].coin_address} {if $TRANSACTIONS[transaction].height == 0}n/a{else}{if $GLOBAL.website.blockexplorer.url}{$TRANSACTIONS[transaction].height}{else}{$TRANSACTIONS[transaction].height}{/if}{/if} @@ -103,5 +102,5 @@ {/section} - + diff --git a/public/templates/test/admin/transactions/default.tpl b/public/templates/test/admin/transactions/default.tpl index 40f67d00..162863d0 100644 --- a/public/templates/test/admin/transactions/default.tpl +++ b/public/templates/test/admin/transactions/default.tpl @@ -78,7 +78,7 @@ Account Date TX Type - Status + Status Payment Address Block # Amount @@ -91,7 +91,7 @@ {$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 @@ -99,10 +99,9 @@ $TRANSACTIONS[transaction].type == 'Debit_AP' OR $TRANSACTIONS[transaction].type == 'TXFee' OR $TRANSACTIONS[transaction].confirmations >= $GLOBAL.confirmations - }Confirmed - {else if $TRANSACTIONS[transaction].confirmations == -1}Orphaned - {else}Unconfirmed{/if} - ({$TRANSACTIONS[transaction].confirmations|default:"n/a"}) + }Confirmed + {else if $TRANSACTIONS[transaction].confirmations == -1}Orphaned + {else}Unconfirmed{/if} {$TRANSACTIONS[transaction].coin_address} {if $TRANSACTIONS[transaction].height == 0}n/a{else}{if $GLOBAL.website.blockexplorer.url}{$TRANSACTIONS[transaction].height}{else}{$TRANSACTIONS[transaction].height}{/if}{/if} diff --git a/public/templates/test/statistics/blocks/default.tpl b/public/templates/test/statistics/blocks/default.tpl index d214890f..d0bbb186 100644 --- a/public/templates/test/statistics/blocks/default.tpl +++ b/public/templates/test/statistics/blocks/default.tpl @@ -58,17 +58,17 @@ {assign var="count" value=$count+1} {if ! $GLOBAL.website.blockexplorer.disabled} - {$BLOCKSFOUND[block].height} + {$BLOCKSFOUND[block].height} {else} {$BLOCKSFOUND[block].height} {/if} {if $BLOCKSFOUND[block].confirmations >= $GLOBAL.confirmations} - Confirmed + Confirmed {else if $BLOCKSFOUND[block].confirmations == -1} - Orphan + Orphan {else} - {$GLOBAL.confirmations - $BLOCKSFOUND[block].confirmations} left + {$GLOBAL.confirmations - $BLOCKSFOUND[block].confirmations} left {/if} {if $BLOCKSFOUND[block].is_anonymous|default:"0" == 1}anonymous{else}{$BLOCKSFOUND[block].finder|default:"unknown"|escape}{/if}