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

disable showing user info when desired

parent bc901eb4
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
{% endif %} {% endif %}
{% endif %}</h3> {% endif %}</h3>
<p style="padding-top:0px; margin-top:0px"> <p style="padding-top:0px; margin-top:0px">
<em>{% if election.private_p %}private{%else%}public{% endif %}</em> {{ election.election_type }} created by <u><b>{{election.admin.display_html_small|safe}}</b></u> <em>{% if election.private_p %}private{%else%}public{% endif %}</em> {{ election.election_type }}{% if settings.SHOW_USER_INFO %} created by <u><b>{{election.admin.display_html_small|safe}}</b></u>{% endif %}
{% if election.is_archived %} {% if election.is_archived %}
[archived] [archived]
{% endif %} {% endif %}
......
...@@ -40,7 +40,7 @@ More than <b>100,000 votes</b> have been cast using Helios. ...@@ -40,7 +40,7 @@ More than <b>100,000 votes</b> have been cast using Helios.
<p> <p>
{% for election in elections %} {% for election in elections %}
<div class="panel"> <div class="panel">
<a style="font-size: 1.4em;" href="{% url helios.views.election_shortcut election.short_name %}">{{election.name}}</a> by {{election.admin.display_html_small|safe}}<br /> <a style="font-size: 1.4em;" href="{% url helios.views.election_shortcut election.short_name %}">{{election.name}}</a>{% if settings.SHOW_USER_INFO %} by {{election.admin.display_html_small|safe}}{% endif %}<br />
{{election.description}} {{election.description}}
</div> </div>
<br /> <br />
......
...@@ -24,6 +24,10 @@ MASTER_HELIOS = (get_from_env('MASTER_HELIOS', '0') == '1') ...@@ -24,6 +24,10 @@ MASTER_HELIOS = (get_from_env('MASTER_HELIOS', '0') == '1')
# if turned off, the admin will need to know to go to /auth/login manually # if turned off, the admin will need to know to go to /auth/login manually
SHOW_LOGIN_OPTIONS = (get_from_env('SHOW_LOGIN_OPTIONS', '1') == '1') SHOW_LOGIN_OPTIONS = (get_from_env('SHOW_LOGIN_OPTIONS', '1') == '1')
# sometimes, when the site is not that social, it's not helpful
# to display who created the election
SHOW_USER_INFO = (get_from_env('SHOW_USER_INFO', '1') == '1')
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', 'ENGINE': 'django.db.backends.postgresql_psycopg2',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment