Skip to content
Snippets Groups Projects
Commit 46a7ea8b authored by Ben Adida's avatar Ben Adida
Browse files

small tweaks

parent 46b16f0e
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,7 @@ Your key has been generated, but you may choose to<br /><a href="javascript:clea
</span>
<p>
<button style="font-size:16pt;" onclick="download_sk(); $('#pk_link').show();">Download your secret key</button>
<button style="font-size:16pt;" onclick="download_sk(); $('#pk_link').show();">Save your secret key</button>
</p>
<p style="display: none;" id="pk_link">
......
......@@ -243,7 +243,8 @@ You are <em>not eligible</em> to vote in this {{election.election_type}}.
{% if election.openreg %}
{% if election.eligibility %}
This election is open to: {{election.pretty_eligibility|safe}}. <a href="{{settings.SECURE_URL_HOST}}{% url auth.views.index %}?return_url={{CURRENT_URL}}">Log in</a> to check your eligibility.
This election is open to: {{election.pretty_eligibility|safe}}
<a href="{{settings.SECURE_URL_HOST}}{% url auth.views.index %}?return_url={{CURRENT_URL}}">Log in</a> to check your eligibility.
{% else %}
Anyone can vote in this election.
{% endif %}
......
......@@ -1009,7 +1009,7 @@ def trustee_decrypt_and_prove(request, election, trustee):
@election_view(frozen=True)
def trustee_upload_decryption(request, election, trustee_uuid):
if not _check_election_tally_type(election) or election.encrypted_tally == None:
return HttpResponseRedirect(reverse(one_election_view,args=[election.election_id]))
return FAILURE
trustee = Trustee.get_by_election_and_uuid(election, trustee_uuid)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment