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

made things more modular

parent 280b566c
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
......@@ -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
......@@ -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 %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment