Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Replace "Forged today" with "In past 365 days" - Closes #401
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Jun 14, 2017
1 parent 0a26dfb commit 77796a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/forging/forging.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ app.component('forging', {
this.delegate = this.account.get().delegate || {};
this.updateForgedBlocks(20, 0, true);

this.updateForgingStats('today', moment().set({ hour: 0, minute: 0, second: 0 }));
this.updateForgingStats('last24h', moment().subtract(1, 'days'));
this.updateForgingStats('last7d', moment().subtract(7, 'days'));
this.updateForgingStats('last30d', moment().subtract(30, 'days'));
this.updateForgingStats('last365d', moment().subtract(365, 'days'));
this.updateForgingStats('total', moment('2016-04-24 17:00'));
}

Expand Down
8 changes: 4 additions & 4 deletions src/components/forging/forging.pug
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ md-card.offline-hide
span(md-position-mode='target-right target')
span {{$ctrl.statistics.total | lsk | number:2 }} LSK Earned
md-content(layout='column', layout-gt-xs='row')
md-card(flex-50, flex-gt-xs=25, layout-padding)
.info-panel.info-panel-grey
span.title Today
span.pull-right {{$ctrl.statistics.today | lsk | number:2 }} LSK
md-card(flex-50, flex-gt-xs=25, layout-padding)
.info-panel.info-panel-grey
span.title Last 24 hours
Expand All @@ -29,6 +25,10 @@ md-card.offline-hide
.info-panel.info-panel-grey
span.title {{'Last 30 days'}}
span.pull-right {{$ctrl.statistics.last30d | lsk | number:2 }} LSK
md-card(flex-50, flex-gt-xs=25, layout-padding)
.info-panel.info-panel-grey
span.title {{'Last 365 days'}}
span.pull-right {{$ctrl.statistics.last365d | lsk | number:2 }} LSK
div(layout='column', layout-gt-xs='row')
md-card(flex-gt-xs=33, layout-align='center center', layout-padding)
div Rank
Expand Down

0 comments on commit 77796a5

Please sign in to comment.