Skip to content

Commit

Permalink
Merge pull request #234 from hoangkianh/master
Browse files Browse the repository at this point in the history
fix #226
  • Loading branch information
thanhson1085 committed Oct 6, 2018
2 parents 622a4c0 + 2c33b15 commit 694911a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
9 changes: 7 additions & 2 deletions app/assets/scss/components/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@

.tomo-table--signed {

td[aria-colindex="4"] {
td[aria-colindex="5"] {
text-align: center;
grid-template-columns: 100% !important;

Expand All @@ -674,11 +674,16 @@

thead tr,
tbody tr {
grid-template-columns: 10% 20% 60% 10%;
grid-template-columns: 10% 15% 55% 10% 10%;
}

th[aria-colindex="4"],
td[aria-colindex="4"] {
text-align: right
}

th[aria-colindex="5"],
td[aria-colindex="5"] {
text-align: right;

a > span {
Expand Down
20 changes: 18 additions & 2 deletions app/components/candidates/View.vue
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,15 @@
<span>View on TomoScan</span>
</a>
</template>

<template
slot="createdAt"
slot-scope="data">
<span :id="`timestamp__${data.index}`">{{ data.item.createdAt }}</span>
<b-tooltip :target="`timestamp__${data.index}`">
{{ data.item.dateTooltip }}
</b-tooltip>
</template>
</b-table>

<b-pagination
Expand Down Expand Up @@ -548,6 +557,11 @@ export default {
label: 'Tx Hash',
sortable: false
},
{
key: 'createdAt',
label: 'Age',
sortable: false
},
{
key: 'action',
label: '',
Expand Down Expand Up @@ -608,7 +622,7 @@ export default {
sortable: false
},
{
key: 'tx',
key: 'action',
label: '',
sortable: false
}
Expand Down Expand Up @@ -721,7 +735,9 @@ export default {
})
self.signs.push({
tx: stx[0].tx,
blockNumber: bs.blockNumber
blockNumber: bs.blockNumber,
createdAt: moment(bs.createdAt).fromNow(),
dateTooltip: moment(bs.createdAt).format('lll')
})
})
Expand Down

0 comments on commit 694911a

Please sign in to comment.