Skip to content

Commit

Permalink
displays timestamp on every transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
santisiri committed Apr 11, 2018
1 parent 341d293 commit 3acdac7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions imports/ui/css/earth.css
Original file line number Diff line number Diff line change
Expand Up @@ -3155,6 +3155,11 @@ blockquote {
float: left;
}

.data.data-feed.data-transaction {
margin: 3px 10px 7px -4px;
float: left;
}

.contract-collapse {
position: absolute;
top: 0px;
Expand Down Expand Up @@ -5537,6 +5542,12 @@ blockquote {
margin-bottom: 10px;
}

.transaction-date {
margin-top: 3px;
margin-bottom: 10px;
margin-left: -4px;
}

@media (max-width: 991px) {
.contract {
margin-right: 15px;
Expand Down
5 changes: 5 additions & 0 deletions imports/ui/templates/widgets/transaction/transaction.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
</div>
</div>
</div>

<div class="data data-feed data-transaction">
<div class="verifier verifier-live verifier-feed">&#183; {{sinceDate}}</div>
</div>

{{#if compressed}}
<div class="identity identity-transaction w-clearfix" style="float:left">
{{#with sender}}
Expand Down
4 changes: 4 additions & 0 deletions imports/ui/templates/widgets/transaction/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ReactiveVar } from 'meteor/reactive-var';
import { Session } from 'meteor/session';

import { getVotes } from '/imports/api/transactions/transaction';
import { timeCompressed } from '/imports/ui/modules/chronos';

import '/imports/ui/templates/widgets/transaction/transaction.html';

Expand Down Expand Up @@ -70,6 +71,9 @@ Template.transaction.helpers({
}
return '';
},
sinceDate() {
return `${timeCompressed(this.contract.timestamp)}`;
},
onCard() {
if (this.onCard) {
return 'vote-delegation-card';
Expand Down

0 comments on commit 3acdac7

Please sign in to comment.