Skip to content
Snippets Groups Projects
Unverified Commit 5bfd91a5 authored by millosolomillo's avatar millosolomillo Committed by GitHub
Browse files

Revert "Pulling updated benadida master branch (#6)" (#7)

This reverts commit 9b697dc6.
parent 9b697dc6
No related branches found
No related tags found
No related merge requests found
Showing
with 47 additions and 47 deletions
Please provide the voter ID and password you received by email.<br /><br />
<form method="post" action="{% url "election@password-voter-login" election.uuid %}" onsubmit="show_waiting()">
<form method="post" action="{% url "helios.views.password_voter_login" election.uuid %}" onsubmit="show_waiting()">
<input type="hidden" name="csrf_token" value="{{csrf_token}}" />
<input type="hidden" name="return_url" value="{{return_url}}" />
<input type="hidden" name="cast_ballot" value="{{cast_ballot}}" />
......
......@@ -15,12 +15,12 @@
{% if logout %}
<p><b>For your safety, we have logged you out.</b></p>
<iframe width="0" height="0" border="0" frameborder="0" src="{% url "auth@logout" %}">
<iframe width="0" height="0" border="0" frameborder="0" src="/auth/logout">
</iframe>
{% endif %}
<p style="font-size: 1.4em;">
[ <a href="{% url "election@view" election.uuid %}">return to election info</a> ]
[ <a href="{% url "helios.views.one_election_view" election.uuid %}">return to election info</a> ]
</p>
{% endblock %}
......@@ -3,7 +3,7 @@
{% block title %}{{cast_vote.vote_tinyhash}} &mdash; {{election.name}}{% endblock %}
{% block content %}
<h2 class="title">Cast Vote {{cast_vote.vote_tinyhash}}</h2>
cast in <a href="{% url "election@view" election.uuid %}">{{election.name}}</a><br />
cast in <a href="{% url "helios.views.one_election_view" election.uuid %}">{{election.name}}</a><br />
Fingerprint: <tt>{{cast_vote.vote_hash}}</tt><br />
by <b><u>
{% if the_voter.alias %}
......
......@@ -2,7 +2,7 @@
{% block title %}Compute Tally &mdash; {{election.name}}{% endblock %}
{% block content %}
<h2 class="title">{{election.name}} &mdash; Compute Tally <span style="font-size:0.7em;">[<a href="{% url "election@view" election.uuid %}">cancel</a>]</span></h2>
<h2 class="title">{{election.name}} &mdash; Compute Tally <span style="font-size:0.7em;">[<a href="{% url "helios.views.one_election_view" election.uuid %}">cancel</a>]</span></h2>
<p>
You are about to compute the tally for this election. You only will then see the results.
......
......@@ -3,7 +3,7 @@
{% block title %}Audited Ballots for {{election.name}}{% endblock %}
{% block content %}
<h2 class="title">{{election.name}} &mdash; Audited Ballots <span style="font-size:0.7em;">[<a href="{% url "election@view" election_uuid=election.uuid %}">back to election</a>]</span></h2>
<h2 class="title">{{election.name}} &mdash; Audited Ballots <span style="font-size:0.7em;">[<a href="{% url "helios.views.one_election_view" election_uuid=election.uuid %}">back to election</a>]</span></h2>
<p>
When you prepare a ballot with Helios, you immediately receive a smart ballot tracker. Before you choose to cast that ballot, you have the option to ask Helios to "break open" that encrypted ballot and verify that Helios encrypted your ballot correctly. Once that's done, you can post that opened ballot here, on the audited ballots' list, for everyone to verify (your identity is not included). Once you've done this, you have to re-encrypt your choices and obtain a different smart ballot tracker. This helps reduce the chance that someone might coerce you to vote differently from your true choice.
......@@ -14,7 +14,7 @@ These ballots are <em>not cast</em>, and they will not be counted. They are just
</p>
<p>
To verify an audited ballot, copy its entire content and paste it in the <a target="_new" href="/booth/single-ballot-verify.html?election_url={% url "election@home" election.uuid %}">single ballot verifier</a>.
To verify an audited ballot, copy its entire content and paste it in the <a target="_new" href="/booth/single-ballot-verify.html?election_url={% url "helios.views.one_election" election.uuid %}">single ballot verifier</a>.
</p>
{% if audited_ballots %}
......
......@@ -3,7 +3,7 @@
{% block title %}Ballot Tracking Center for {{election.name}}{% endblock %}
{% block content %}
<h2 class="title">{{election.name}} &mdash; Ballot Tracking Center <span style="font-size:0.7em;">[<a href="{% url "election@view" election_uuid=election.uuid %}">back to election</a>]</span></h2>
<h2 class="title">{{election.name}} &mdash; Ballot Tracking Center <span style="font-size:0.7em;">[<a href="{% url "helios.views.one_election_view" election_uuid=election.uuid %}">back to election</a>]</span></h2>
<p>
This is the ballot tracking center, which displays the tracking numbers of all cast ballots in this election.
......@@ -16,15 +16,15 @@
Voters {{offset_plus_one}} - {{offset_plus_limit}} &nbsp;&nbsp;
{% if next_after %}
<a href="{% url "election@bboard" election.uuid %}?after={{next_after}}&offset={{offset_plus_limit}}">next {{limit}}</a> &nbsp;&nbsp;
<a href="./bboard?after={{next_after}}&offset={{offset_plus_limit}}">next {{limit}}</a> &nbsp;&nbsp;
{% endif %}
{% ifequal offset 0 %}
{% else %}
<a href="{% url "election@bboard" election.uuid %}">back to start</a> &nbsp;&nbsp;
<a href="./bboard">back to start</a> &nbsp;&nbsp;
{% endifequal %}
{% if more_p %}
<a href="{% url "election@bboard" election.uuid %}?after={{next_after}}&offset={{next_offset}}">next {{limit}}</a>
<a href="./bboard?after={{next_after}}&offset={{next_offset}}">next {{limit}}</a>
{% endif %}
<table class="pretty">
<tr><th>
......@@ -40,7 +40,7 @@ Name
{{voter.alias}}
{% else %}
<img border="0" height="20" src="/static/auth/login-icons/{{voter.voter_type}}.png" alt="{{voter.voter_type}}" /> {% if voter.name %}{{voter.name}}{% else %}{{voter.voter_id}}{% endif %}
{% endif %}</td><td><tt style="font-size: 1.4em;;">{% if voter.vote_hash %}{{voter.vote_hash}} <span style="font-size:0.8em;">[<a href="{% url "election@ballots@voter@last" election_uuid=election.uuid voter_uuid=voter.uuid %}">view</a>]</span>{% else %}&mdash;{% endif %}</tt></td></tr>
{% endif %}</td><td><tt style="font-size: 1.4em;;">{% if voter.vote_hash %}{{voter.vote_hash}} <span style="font-size:0.8em;">[<a href="{% url "helios.views.voter_last_vote" election_uuid=election.uuid voter_uuid=voter.uuid %}">view</a>]</span>{% else %}&mdash;{% endif %}</tt></td></tr>
{% endfor %}
</table>
......
{% extends "helios/templates/cryptobase.html" %}
{% block content %}
<h2 class="title">{{election.name}} &mdash; Questions <span style="font-size:0.7em;">[<a href="{% url "election@view" election.uuid %}">back to election</a>]</span></h2>
<h2 class="title">{{election.name}} &mdash; Questions <span style="font-size:0.7em;">[<a href="{% url "helios.views.one_election_view" election.uuid %}">back to election</a>]</span></h2>
<script language="javascript">
{% if election.questions %}
......
......@@ -73,7 +73,7 @@ requires election-specific credentials.
{% endif %}
</b><br /></p>
<p>
[<a href="{% url "election@view" election.uuid %}">return to the main election page</a>]
[<a href="{% url "helios.views.one_election_view" election.uuid %}">return to the main election page</a>]
</p>
{% else %}
<p>
......
......@@ -19,12 +19,12 @@
<input type="hidden" name="csrf_token" value="{{csrf_token}}" />
<input class="button" type="submit" value="compute encrypted tally!" />
<button onclick="document.location='{% url "election@view" election.uuid %}'; return false;">never mind</button>
<button onclick="document.location='./view'; return false;">never mind</button>
</form>
{% else %}
<p>
No votes have been cast in this election. At least one vote must be cast before you compute the tally.<br /><br />
<a href="{% url "election@view" election.uuid %}">back to election</a>
<a href="./view">back to election</a>
</p>
{% endif %}
</div>
......
......@@ -2,7 +2,7 @@
{% block content %}
<h2 class="title">{{election.name}} &mdash; Update <span style="font-size:0.7em;">[<a href="{% url "election@view" election.uuid %}">cancel</a>]</span></h2>
<h2 class="title">{{election.name}} &mdash; Update <span style="font-size:0.7em;">[<a href="{% url "helios.views.one_election_view" election.uuid %}">cancel</a>]</span></h2>
{% if error %}
<p style="color: red;">
......
......@@ -2,7 +2,7 @@
{% block content %}
<h2 class="title">{{election.name}} &mdash; Extend Voting <span style="font-size:0.7em;">[<a href="{% url "election@view" election.uuid %}">cancel</a>]</span></h2>
<h2 class="title">{{election.name}} &mdash; Extend Voting <span style="font-size:0.7em;">[<a href="{% url "helios.views.one_election_view" election.uuid %}">cancel</a>]</span></h2>
<form class="prettyform" action="" method="POST" id="edit_election_form">
<input type="hidden" name="csrf_token" value="{{csrf_token}}" />
......
......@@ -29,14 +29,14 @@ You must freeze the ballot before you can contact voters.
<li>{{issue.action}}</li>
{% endfor %}
</ul>
<a href="{% url "election@view" election.uuid %}">go back to the election</a>
<a href="{% url "helios.views.one_election_view" election.uuid %}">go back to the election</a>
</p>
{% else %}
<form method="post" action="">
<input type="hidden" name="csrf_token" value="{{csrf_token}}" />
<input class="button" type="submit" value="Freeze the ballot" />
<button onclick="document.location='{% url "election@view" election.uuid %}'; return false;">never mind</button>
<button onclick="document.location='./view'; return false;">never mind</button>
</form>
{% endif %}
......
......@@ -35,7 +35,7 @@ $(document).ready(function() {
$('#generator').hide();
// get some more server-side randomness for keygen
$.getJSON('{% url "election@get-randomness" election.uuid %}', function(result) {
$.getJSON('../../get-randomness', function(result) {
sjcl.random.addEntropy(result.randomness);
BigInt.setup(function() {
ELGAMAL_PARAMS = ElGamal.Params.fromJSONObject({{eg_params_json|safe}});
......@@ -159,7 +159,7 @@ Your key has been generated, but you may choose to<br /><a href="javascript:clea
</p>
</div>
<form method="post" id="pk_form" action="{% url "election@trustee@upload-pk" election.uuid trustee.uuid %}">
<form method="post" id="pk_form" action="{% url "helios.views.trustee_upload_pk" election.uuid trustee.uuid %}">
<h3>Your Public Key</h3>
<p>
It's time to upload the public key to the server.
......
......@@ -9,6 +9,6 @@
</p>
<p>
<a href="{% url "election@view" election.uuid %}">back to the election</a>
<a href="{% url "helios.views.one_election_view" election.uuid %}">back to the election</a>
</p>
{% endblock %}
......@@ -2,7 +2,7 @@
{% block title %}Questions for {{election.name}}{% endblock %}
{% block content %}
<h3 class="title">{{election.name}} &mdash; Questions <span style="font-size:0.7em;">[<a href="{% url "election@view" election.uuid %}">back to election</a>]</span></h3>
<h3 class="title">{{election.name}} &mdash; Questions <span style="font-size:0.7em;">[<a href="{% url "helios.views.one_election_view" election.uuid %}">back to election</a>]</span></h3>
<script language="javascript">
{% if election.questions %}
......
......@@ -16,7 +16,7 @@
You are <em>not</em> registered for this election.
</p>
<form method="post" action="{% url "election@register" election.uuid %}">
<form method="post" action="{% url "helios.views.one_election_register" election.uuid %}">
<input type="submit" value="register!" />
</form>
{% endif %}
......
......@@ -9,6 +9,6 @@
</p>
<p>
<a href="{% url "election@view" election.uuid %}">view the election tally</a>
<a href="{% url "helios.views.one_election_view" election.uuid %}">view the election tally</a>
</p>
{% endblock %}
\ No newline at end of file
......@@ -5,7 +5,7 @@
<h3 class="title">{{ election.name }}
{% if admin_p %}
{% if not election.frozen_at %}
<small><a class="small button" href="{% url "election@edit" election.uuid %}">edit</a></small>
<small><a class="small button" href="{% url "helios.views.one_election_edit" election.uuid %}">edit</a></small>
{% endif %}
{% endif %}</h3>
<p style="padding-top:0px; margin-top:0px">
......@@ -14,8 +14,8 @@
[archived]
{% endif %}
{% if admin_p %}
&nbsp;{% if election.is_archived %}<a class="small button" href="{% url "election@archive" election_uuid=election.uuid %}?archive_p=0">unarchive it</a>{% else %}<a class="small button" href="{% url "election@archive" election_uuid=election.uuid %}?archive_p=1">archive it</a>{% endif %}
<a class="small button" onclick="return window.confirm('Are you sure you want to copy this election?');" href="{% url "election@copy" election_uuid=election.uuid %}">copy</a>
&nbsp;{% if election.is_archived %}<a class="small button" href="{% url "helios.views.one_election_archive" election_uuid=election.uuid %}?archive_p=0">unarchive it</a>{% else %}<a class="small button" href="{% url "helios.views.one_election_archive" election_uuid=election.uuid %}?archive_p=1">archive it</a>{% endif %}
<a class="small button" onclick="return window.confirm('Are you sure you want to copy this election?');" href="{% url "helios.views.one_election_copy" election_uuid=election.uuid %}">copy</a>
{% endif %}
<br />
{% if admin_p %}
......@@ -23,12 +23,12 @@
{% if election.featured_p %}
this {{election.election_type}} is featured on the front page.
{% if can_feature_p %}
[<a href="{% url "election@set-featured" election.uuid %}?featured_p=0">unfeature it</a>]
[<a href="{% url "helios.views.one_election_set_featured" election.uuid %}?featured_p=0">unfeature it</a>]
{% endif %}
{% else %}
this {{election.election_type}} is <u>not</u> featured on the front page.
{% if can_feature_p %}
[<a href="{% url "election@set-featured" election.uuid %}?featured_p=1">feature it</a>]
[<a href="{% url "helios.views.one_election_set_featured" election.uuid %}?featured_p=1">feature it</a>]
{% endif %}
{% endif %}
{% endif %}
......@@ -51,11 +51,11 @@ this {{election.election_type}} is <u>not</u> featured on the front page.
{% endif %}
<p align="center" style="font-size: 1.5em;">
<a href="{% url "election@questions" election.uuid %}">questions ({% if election.questions %}{{election.questions|length}}{% else %}0{% endif %})</a>
<a href="{% url "helios.views.one_election_questions" election.uuid %}">questions ({% if election.questions %}{{election.questions|length}}{% else %}0{% endif %})</a>
&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="{% url "election@voters@list-pretty" election.uuid %}">voters &amp; ballots</a>
<a href="{% url "helios.views.voters_list_pretty" election.uuid %}">voters &amp; ballots</a>
&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="{% url "election@trustees@view" election.uuid %}">trustees ({{trustees|length}})</a>
<a href="{% url "helios.views.list_trustees_view" election.uuid %}">trustees ({{trustees|length}})</a>
</p>
{% if admin_p %}
......@@ -87,7 +87,7 @@ this {{election.election_type}} is <u>not</u> featured on the front page.
{{issue.action}}{% if forloop.last %}{% else %}, and{% endif %}<br />
{% endfor %}
{% else %}
<a href="{% url "election@freeze" election.uuid %}">freeze ballot and open election.</a>
<a href="{% url "helios.views.one_election_freeze" election.uuid %}">freeze ballot and open election.</a>
<br />
{% if election.voting_starts_at %}
once you do this, the election will be ready for voting and will open automatically<br />
......@@ -104,20 +104,20 @@ once you do this, the election will be immediately open for voting.
Tally computation is under way.<br />
Reload this page in a couple of minutes.
{% else %}
<a href="{% url "election@compute-tally" election.uuid %}">compute encrypted tally</a><br />
<a href="{% url "helios.views.one_election_compute_tally" election.uuid %}">compute encrypted tally</a><br />
The encrypted votes will be combined into an encrypted tally. Once this is done,<br />
trustees will be asked to provide their share of the decryption.
{% endif %}
{% else %}
{% if election.result %}
<a href="{% url "election@release-result" election.uuid %}">release result</a><br />
<a href="{% url "helios.views.release_result" election.uuid %}">release result</a><br />
The result displayed below is visible only to you.<br />
Once you release the result, it will be visible to everyone.
{% else %}
{% if election.ready_for_decryption_combination %}
<a href="{% url "election@combine-decryptions" election.uuid %}">
<a href="{% url "helios.views.combine_decryptions" election.uuid %}">
{% if election.num_trustees == 1 %}
compute results
{% else %}
......@@ -131,7 +131,7 @@ The decryption shares from the trustees will be combined and the tally computed.
Once you do this, the tally will visible to you, the administrator, only.
{% endif %}
{% else %}
<a href="{% url "election@trustees@view" election.uuid %}">trustees (for decryption)</a>
<a href="{% url "helios.views.list_trustees_view" election.uuid %}">trustees (for decryption)</a>
{% endif %}
{% endif %}
......@@ -236,7 +236,7 @@ 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@index" %}?return_url={{CURRENT_URL}}">Log in</a> to check your eligibility.
<a href="{{settings.SECURE_URL_HOST}}{% url "helios_auth.views.index" %}?return_url={{CURRENT_URL}}">Log in</a> to check your eligibility.
{% else %}
Anyone can vote in this election.
{% endif %}
......@@ -249,7 +249,7 @@ Anyone can vote in this election.
{% endif %}
{% if admin_p and election.voting_ends_at and not election.tallying_started_at %}
<br /><a href="{% url "election@extend" election.uuid %}">extend voting</a><br />
<br /><a href="{% url "helios.views.one_election_extend" election.uuid %}">extend voting</a><br />
{% endif %}
<div style="background: lightyellow; padding:5px; padding-left: 10px; margin-top: 15px; border: 1px solid #aaa; width: 720px;" class="round">
......@@ -271,22 +271,22 @@ Anyone can vote in this election.
{% endif %}
<p style="font-size: 1.3em;">
<a href="{% url "election@voters@list-pretty" election.uuid %}">Ballot Tracking Center</a> &nbsp;| &nbsp;
<a href="{% url "election@audited-ballots" election.uuid %}">Audited Ballots</a>
<a href="{% url "helios.views.voters_list_pretty" election.uuid %}">Ballot Tracking Center</a> &nbsp;| &nbsp;
<a href="{% url "helios.views.one_election_audited_ballots" election.uuid %}">Audited Ballots</a>
</p>
{% endif %}
{% if not election.voting_has_started %}
<p style="font-size: 1.2em;">
<a href="{{SECURE_URL_HOST}}/booth/vote.html?election_url={% url "election@home" election.uuid %}">preview booth</a>
<a href="{{SECURE_URL_HOST}}/booth/vote.html?election_url={% url "helios.views.one_election" election.uuid %}">preview booth</a>
</p>
{% endif %}
{% if election.voting_has_stopped %}
<p style="font-size: 1.2em;">
{% if election.result %}
verify <a target="_blank" href="/verifier/verify.html?election_url={% url "election@home" election.uuid %}">election tally</a>.
verify <a target="_blank" href="/verifier/verify.html?election_url={% url "helios.views.one_election" election.uuid %}">election tally</a>.
{% endif %}
review the <a href="{{vote_url}}">voting booth</a>.
......
......@@ -5,7 +5,7 @@
<ul>
{% for election in elections %}
<li> <a href="{% url "election@view" election.uuid %}">{{election.name}}</a><em> - {{election.num_voters}} voters / {{election.num_cast_votes}} cast votes</em></li>
<li> <a href="{% url "helios.views.one_election_view" election.uuid %}">{{election.name}}</a><em> - {{election.num_voters}} voters / {{election.num_cast_votes}} cast votes</em></li>
{% endfor %}
</ul>
{% endblock %}
\ No newline at end of file
......@@ -5,7 +5,7 @@
<ul>
{% for election in elections %}
<li> <a href="{% url "election@view" election.uuid %}">{{election.name}}</a></li>
<li> <a href="{% url "helios.views.one_election_view" election.uuid %}">{{election.name}}</a></li>
{% endfor %}
</ul>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment