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

updated all url tags

parent a1f34d7b
Branches
Tags
No related merge requests found
Showing
with 43 additions and 43 deletions
Please provide the voter ID and password you received by email.<br /><br />
<form method="post" action="{% url helios.views.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}}" />
......
......@@ -24,7 +24,7 @@
{% endif %}
<p style="font-size: 1.4em;">
[ <a href="{% url helios.views.one_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 helios.views.one_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 helios.views.one_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 helios.views.one_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 helios.views.one_election 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 helios.views.one_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.
......@@ -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 helios.views.voter_last_vote 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 helios.views.one_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 helios.views.one_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>
......
......@@ -2,7 +2,7 @@
{% block content %}
<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>
<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;">
......
......@@ -29,7 +29,7 @@ You must freeze the ballot before you can contact voters.
<li>{{issue.action}}</li>
{% endfor %}
</ul>
<a href="{% url helios.views.one_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="">
......
......@@ -134,7 +134,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 helios.views.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.
......
......@@ -56,7 +56,7 @@ $(document).ready(function() {
<b>An election managed by multiple trustees</b>.
{% endifequal %}
{% endifequal %}
<form class="prettyform" action="{% url helios.views.election_new_3 %}" method="POST" id="create_election_form" onsubmit="return before_create();">
<form class="prettyform" action="{% url "helios.views.election_new_3" %}" method="POST" id="create_election_form" onsubmit="return before_create();">
<input type="hidden" name="csrf_token" value="{{csrf_token}}" />
<input type="hidden" name="name" value="{{name}}" />
<input type="hidden" name="public_key" id="pk" value="" />
......
......@@ -9,6 +9,6 @@
</p>
<p>
<a href="{% url helios.views.one_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 helios.views.one_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 helios.views.one_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 helios.views.one_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 helios.views.one_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,7 +14,7 @@
[archived]
{% endif %}
{% if admin_p %}
&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 %}
&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 %}
{% endif %}
<br />
{% if admin_p %}
......@@ -22,12 +22,12 @@
{% if election.featured_p %}
this {{election.election_type}} is featured on the front page.
{% if can_feature_p %}
[<a href="{% url helios.views.one_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 helios.views.one_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 %}
......@@ -54,11 +54,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 helios.views.one_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 helios.views.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 helios.views.list_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 %}
......@@ -90,7 +90,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 helios.views.one_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 />
......@@ -107,20 +107,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 helios.views.one_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 helios.views.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 helios.views.combine_decryptions election.uuid %}">
<a href="{% url "helios.views.combine_decryptions" election.uuid %}">
{% if election.num_trustees == 1 %}
compute results
{% else %}
......@@ -134,7 +134,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 helios.views.list_trustees_view election.uuid %}">trustees (for decryption)</a>
<a href="{% url "helios.views.list_trustees_view" election.uuid %}">trustees (for decryption)</a>
{% endif %}
{% endif %}
......@@ -239,7 +239,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 helios_auth.views.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 %}
......@@ -271,22 +271,22 @@ Anyone can vote in this election.
{% endif %}
<p style="font-size: 1.3em;">
<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>
<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 helios.views.one_election 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 helios.views.one_election 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 helios.views.one_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 %}
\ No newline at end of file
......@@ -5,7 +5,7 @@
<ul>
{% for election in elections %}
<li> <a href="{% url helios.views.one_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 %}
......@@ -3,7 +3,7 @@
{% block title %}Trustees for {{election.name}}{% endblock %}
{% block content %}
<h3 class="title">{{election.name}} &mdash; Trustees <span style="font-size:0.7em;">[<a href="{% url helios.views.one_election_view election.uuid %}">back to election</a>]</span></h3>
<h3 class="title">{{election.name}} &mdash; Trustees <span style="font-size:0.7em;">[<a href="{% url "helios.views.one_election_view" election.uuid %}">back to election</a>]</span></h3>
<p>
Trustees are responsible for decrypting the election result.<br />
......@@ -21,11 +21,11 @@
{% if admin_p %}
<p>
[ <a onclick="return(confirm('Adding your own trustee requires a good bit more work to tally the election.\nYou will need to have trustees generate keypairs and safeguard their secret key.\n\nIf you are not sure what that means, we strongly recommend\nclicking Cancel and letting Helios tally the election for you.'));" href="{% url helios.views.new_trustee election.uuid %}">add a trustee</a> ]
[ <a onclick="return(confirm('Adding your own trustee requires a good bit more work to tally the election.\nYou will need to have trustees generate keypairs and safeguard their secret key.\n\nIf you are not sure what that means, we strongly recommend\nclicking Cancel and letting Helios tally the election for you.'));" href="{% url "helios.views.new_trustee" election.uuid %}">add a trustee</a> ]
</p>
{% if not election.has_helios_trustee %}
<p>
<a href="{% url helios.views.new_trustee_helios election.uuid %}">add Helios as a trustee</a>
<a href="{% url "helios.views.new_trustee_helios" election.uuid %}">add Helios as a trustee</a>
</p>
{% endif %}
{% endif %}
......@@ -39,11 +39,11 @@
<h5> Trustee #{{forloop.counter}}: {{t.name}}
{% if admin_p %}
{% if t.secret_key %}
{% if not election.frozen_at %}[<a onclick="return confirm('Are you sure you want to remove Helios as a trustee?');" href="{% url helios.views.delete_trustee election.uuid %}?uuid={{t.uuid}}">x</a>]{% endif %}
{% if not election.frozen_at %}[<a onclick="return confirm('Are you sure you want to remove Helios as a trustee?');" href="{% url "helios.views.delete_trustee" election.uuid %}?uuid={{t.uuid}}">x</a>]{% endif %}
{% else %}
({{t.email}})
{% if not election.frozen_at %}[<a onclick="return confirm('Are you sure you want to remove this Trustee?');" href="{% url helios.views.delete_trustee election.uuid %}?uuid={{t.uuid}}">x</a>]{% endif %}
[<a onclick="return confirm('Are you sure you want to send this trustee his/her admin URL?');" href="{% url helios.views.trustee_send_url election.uuid t.uuid %}">send login</a>]
{% if not election.frozen_at %}[<a onclick="return confirm('Are you sure you want to remove this Trustee?');" href="{% url "helios.views.delete_trustee" election.uuid %}?uuid={{t.uuid}}">x</a>]{% endif %}
[<a onclick="return confirm('Are you sure you want to send this trustee his/her admin URL?');" href="{% url "helios.views.trustee_send_url" election.uuid t.uuid %}">send login</a>]
{% endif %}
{% endif %}
</h5>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment