From 4cb900ed1787b4cf308fb7073e7806f3fd801fb5 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Fri, 4 Nov 2022 22:33:24 +0800 Subject: [PATCH] improve active proposal --- src/views/Dashboard.vue | 187 ++++++++++++++++++++++++++++++++-------- 1 file changed, 153 insertions(+), 34 deletions(-) diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index 621522d4..15ddcee3 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -93,33 +93,128 @@ Active Proposals - - - - {{ myVotes[prop.id] || 'Vote' }} - - - - -
- {{ prop.id }}. {{ prop.title }} -
- {{ formatType(prop.contents['@type']) }} {{ formatEnding(prop.voting_end_time) }} -
-
-
+ + + {{ prop.id }} + + + + +
+ {{ prop.title }} +
+ {{ formatType(prop.contents['@type']) }} {{ formatEnding(prop.voting_end_time) }} +
+
+ + + + + + + + + + + + + {{ percent(prop.tally.yes) }}% voted Yes + + + {{ percent(prop.tally.no) }}% voted No + + + {{ percent(prop.tally.veto) }}% voted No With Veto + + + {{ percent(prop.tally.abstain) }}% voted Abstain + + + + + {{ myVotes[prop.id] ? `${myVotes[prop.id]}`: 'Vote' }} + + + + + + + + {{ addNewLine(prop.description) }} + + + +
No active proposal! @@ -343,7 +438,7 @@