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
fc0cda1a
Commit
fc0cda1a
authored
15 years ago
by
Ben Adida
Browse files
Options
Downloads
Patches
Plain Diff
made things more modular
parent
280b566c
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
settings.py.sample
+2
-0
2 additions, 0 deletions
settings.py.sample
single-election/__init__.py
+1
-1
1 addition, 1 deletion
single-election/__init__.py
single-election/templates/index.html
+4
-4
4 additions, 4 deletions
single-election/templates/index.html
with
7 additions
and
5 deletions
settings.py.sample
+
2
−
0
View file @
fc0cda1a
...
...
@@ -128,6 +128,8 @@ TEMPLATE_DEBUG = True
URL_HOST = "https://FILL-ME-IN-helios.appspot.com"
# election stuff
SITE_TITLE = 'Helios Single Election Server'
SINGLE_ELECTION_TITLE = 'Helios Single Election'
SINGLE_ELECTION_UUID = 'FILL-ME-IN'
SINGLE_ELECTION_SHORT_NAME = 'FILL-ME-IN'
...
...
This diff is collapsed.
Click to expand it.
single-election/__init__.py
+
1
−
1
View file @
fc0cda1a
...
...
@@ -13,4 +13,4 @@ helios.ADMIN_ONLY = True
helios
.
ADMIN
=
auth
.
models
.
User
.
get_or_create
(
user_type
=
'
password
'
,
user_id
=
'
benadida
'
,
info
=
{
'
password
'
:
'
test
'
})
# authentication limited to passwords
auth
.
ENABLED_AUTH_SYSTEMS
=
[
'
password
'
]
\ No newline at end of file
auth
.
ENABLED_AUTH_SYSTEMS
=
[
'
cas
'
]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
single-election/templates/index.html
+
4
−
4
View file @
fc0cda1a
...
...
@@ -2,13 +2,13 @@
{% block title %}Single Election Helios{% endblock %}
{% block header %}
<h2>
Single Election
</h2>
<h2>
{{ settings.SITE_TITLE }}
</h2>
{% endblock %}
{% block content %}
<p>
Welcome to the
SINGLE HELIOS ELECTION
Server.
Welcome to the
{{settings.SITE_TITLE}}
Server.
</p>
<p>
...
...
@@ -20,12 +20,12 @@
<p>
Because Helios is built to be used on the Web, it is appropriate
<em><b>
only for low-coercion elections
</b></em>
.
Specifically, Helios is not appropriate at this time for governmental elections where the stakes are particularly high,
and the risk of one voter attempting to influence another
are
very real.
and the risk of one voter attempting to influence another
is
very real.
</p>
<p
style=
"font-size: 1.4em;"
>
Proceed to
<a
href=
"{% url helios.views.one_election_view settings.SINGLE_ELECTION_UUID %}"
>
the
SINGLE HELIOS ELECTION
</a>
.
<a
href=
"{% url helios.views.one_election_view settings.SINGLE_ELECTION_UUID %}"
>
the
{{settings.SINGLE_ELECTION_TITLE}}
</a>
.
</p>
{% endblock %}
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