{% extends "base.html" %} {% block title %}{{ proposal.title }} - Governance Proposal{% endblock %} {% block content %}
{% if success %}
{% endif %}

{{ proposal.title }}

{{ proposal.status }} Created by {{ proposal.creator_name }}
Description

{{ proposal.description }}

Voting Period

{% if proposal.voting_starts_at and proposal.voting_ends_at %} Start: {{ proposal.voting_starts_at | date(format="%Y-%m-%d") }}
End: {{ proposal.voting_ends_at | date(format="%Y-%m-%d") }} {% else %} Not set {% endif %}

Voting Results
{% set yes_percent = 0 %} {% set no_percent = 0 %} {% set abstain_percent = 0 %} {% if results.total_votes > 0 %} {% set yes_percent = (results.yes_count * 100 / results.total_votes) | int %} {% set no_percent = (results.no_count * 100 / results.total_votes) | int %} {% set abstain_percent = (results.abstain_count * 100 / results.total_votes) | int %} {% endif %}

Yes: {{ results.yes_count }} ({{ yes_percent }}%)

No: {{ results.no_count }} ({{ no_percent }}%)

Abstain: {{ results.abstain_count }} ({{ abstain_percent }}%)

Total Votes: {{ results.total_votes }}

{% if proposal.status == "Active" and user and user.id %}
Cast Your Vote
{% elif not user or not user.id %}

You must be logged in to vote.

Login to Vote
{% endif %}
Votes ({{ votes | length }})
{% if votes | length > 0 %}
{% for vote in votes %} {% endfor %}
Voter Vote Comment Date
{{ vote.voter_name }} {{ vote.vote_type }} {% if vote.comment %}{{ vote.comment }}{% else %}No comment{% endif %} {{ vote.created_at | date(format="%Y-%m-%d %H:%M") }}
{% else %}

No votes have been cast yet.

{% endif %}
{% endblock %}