Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Helios Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Helios Server
Commits
534d8159
Commit
534d8159
authored
Aug 7, 2009
by
Ben Adida
Browse files
Options
Downloads
Patches
Plain Diff
fixed casting bug for IACR casting
parent
2efffe0d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
helios
+1
-1
1 addition, 1 deletion
helios
iacr/templates/base.html
+7
-1
7 additions, 1 deletion
iacr/templates/base.html
iacr/templates/election_tallied.html
+14
-0
14 additions, 0 deletions
iacr/templates/election_tallied.html
iacr/views.py
+4
-0
4 additions, 0 deletions
iacr/views.py
with
26 additions
and
2 deletions
helios
@
e2524f89
Compare
2005360e
...
e2524f89
Subproject commit
2005360e877a2e6a7e2d4580d9afcc981015ff04
Subproject commit
e2524f89f8f338e1ca511006ddb15e9794d84611
This diff is collapsed.
Click to expand it.
iacr/templates/base.html
+
7
−
1
View file @
534d8159
...
...
@@ -34,6 +34,12 @@
{% block header %}
{% endblock %}
</div>
{% if admin_p %}
<div
style=
"float:right; border-left: 1px dashed black; padding: 0px 20px 5px 20px;"
>
<h3>
Administration
</h3>
{% block admin %}{% endblock %}
</div>
{% endif %}
{% block content %}{% endblock %}
<div
id=
"footer"
>
<br
/><br
/>
...
...
This diff is collapsed.
Click to expand it.
iacr/templates/election_tallied.html
0 → 100644
+
14
−
0
View file @
534d8159
{% extends 'iacr/templates/base.html' %}
{% block content %}
<h2
class=
"title"
>
Election {{election.name}} Already Tallied
</h2>
<p>
This election has already been tallied (or at least the tally has begun), so you can no longer cast a vote.
</p>
<p>
<a
href=
"{% url helios.views.one_election_view election_id=election.uuid %}"
>
view the election
</a>
</p>
{% endblock %}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
iacr/views.py
+
4
−
0
View file @
534d8159
...
...
@@ -58,6 +58,10 @@ def cast_confirm(request):
if
not
election
.
frozen_at
or
election
.
result
:
return
HttpResponse
(
"
election is not ready or already done
"
)
# tallied election, no vote casting
if
election
.
encrypted_tally
or
election
.
result
:
return
render_template
(
request
,
'
election_tallied
'
,
{
'
election
'
:
election
})
encrypted_vote
=
request
.
session
[
'
encrypted_vote
'
]
vote_fingerprint
=
cryptoutils
.
hash_b64
(
encrypted_vote
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment