Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions democrasite/templates/webiscite/snippets/vote.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
{# If the user is logged in then add vote-enabling logic, otherwise add a "log in to vote" popup #}
<a href="javascript:;"
class="float-start mt-2 link-success link-underline link-underline-opacity-0 link-underline-opacity-75-hover vote
{% if bill.user_vote is True %}fw-bold{% endif %}"
{% if bill.user_vote is True %}fw-bold{% endif %}
{% if bill.status != bill.Status.OPEN %}pe-none{% endif %}"
{% if bill.status == bill.Status.OPEN %}
{% if user.is_authenticated %}
id="vote-yes-{{ bill.id }}" action="{{ bill.get_vote_url }}" value="vote-yes"
Expand All @@ -25,7 +26,8 @@

<a href="javascript:;"
class="float-end mt-2 link-danger link-underline link-underline-opacity-0 link-underline-opacity-75-hover vote
{% if bill.user_vote is False %}fw-bold{% endif %}"
{% if bill.user_vote is False %}fw-bold{% endif %}
{% if bill.status != bill.Status.OPEN %}pe-none{% endif %}"
{% if bill.status == bill.Status.OPEN %}
{% if user.is_authenticated %}
id="vote-no-{{ bill.id }}" action="{{ bill.get_vote_url }}" value="vote-no"
Expand Down