update governance ui

This commit is contained in:
timurgordon
2025-05-16 14:07:20 +03:00
parent 9468595395
commit 2fd74defab
5 changed files with 238 additions and 154 deletions

View File

@@ -3,14 +3,6 @@
{% block title %}My Votes - Governance Dashboard{% endblock %}
{% block content %}
<div class="container-fluid">
<div class="row mb-4">
<div class="col-12">
<h1 class="display-5 mb-4">My Votes</h1>
<p class="lead">View all proposals you have voted on.</p>
</div>
</div>
<!-- Navigation Tabs -->
<div class="row mb-4">
<div class="col-12">
@@ -52,7 +44,7 @@
</tr>
</thead>
<tbody>
{% for vote, proposal in votes %}
{% for item in votes %}{% set vote = item.0 %}{% set proposal = item.1 %}
<tr>
<td>{{ proposal.title }}</td>
<td>
@@ -96,7 +88,7 @@
<h5 class="card-title">Yes Votes</h5>
<p class="display-4">
{% set yes_count = 0 %}
{% for vote, proposal in votes %}
{% for item in votes %}{% set vote = item.0 %}{% set proposal = item.1 %}
{% if vote.vote_type == 'Yes' %}
{% set yes_count = yes_count + 1 %}
{% endif %}
@@ -112,7 +104,7 @@
<h5 class="card-title">No Votes</h5>
<p class="display-4">
{% set no_count = 0 %}
{% for vote, proposal in votes %}
{% for item in votes %}{% set vote = item.0 %}{% set proposal = item.1 %}
{% if vote.vote_type == 'No' %}
{% set no_count = no_count + 1 %}
{% endif %}
@@ -128,7 +120,7 @@
<h5 class="card-title">Abstain Votes</h5>
<p class="display-4">
{% set abstain_count = 0 %}
{% for vote, proposal in votes %}
{% for item in votes %}{% set vote = item.0 %}{% set proposal = item.1 %}
{% if vote.vote_type == 'Abstain' %}
{% set abstain_count = abstain_count + 1 %}
{% endif %}
@@ -140,5 +132,4 @@
</div>
</div>
{% endif %}
</div>
{% endblock %}