From a1f34d7b55804de7639ab27df32af0517d433cbf Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Sun, 25 Jan 2015 23:23:10 +0000 Subject: [PATCH] Started moving to new url tag --- helios_auth/templates/login_box.html | 4 ++-- server_ui/templates/base.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/helios_auth/templates/login_box.html b/helios_auth/templates/login_box.html index bd85be0..d3fb7f4 100644 --- a/helios_auth/templates/login_box.html +++ b/helios_auth/templates/login_box.html @@ -1,11 +1,11 @@ {% if default_auth_system %} -<p><a style="font-size:1.3em; border: 1px solid #bbb; padding: 5px;" href="{% url helios_auth.views.start system_name=default_auth_system %}?return_url={{return_url}}">{{default_auth_system_obj.LOGIN_MESSAGE}}</a></p> +<p><a style="font-size:1.3em; border: 1px solid #bbb; padding: 5px;" href="{% url "helios_auth.views.start" system_name=default_auth_system %}?return_url={{return_url}}">{{default_auth_system_obj.LOGIN_MESSAGE}}</a></p> {% else %} {% for auth_system in enabled_auth_systems %} {% ifequal auth_system "password" %} {% else %} <p> - <a href="{{SECURE_URL_HOST}}{% url helios_auth.views.start system_name=auth_system %}?return_url={{return_url}}" style="font-size: 1.4em;"> + <a href="{{SECURE_URL_HOST}}{% url "helios_auth.views.start" system_name=auth_system %}?return_url={{return_url}}" style="font-size: 1.4em;"> <img border="0" height="35" src="/static/auth/login-icons/{{auth_system}}.png" alt="{{auth_system}}" /> {{auth_system}} {% endifequal %} </a> diff --git a/server_ui/templates/base.html b/server_ui/templates/base.html index 95edbd9..ac5f2d1 100644 --- a/server_ui/templates/base.html +++ b/server_ui/templates/base.html @@ -42,7 +42,7 @@ <!-- Right Nav Section --> <ul class="right"> {% if user and user.admin_p %} - <li><a href="{% url helios.stats_views.home %}">Admin</a></li> + <li><a href="{% url "helios.stats_views.home" %}">Admin</a></li> <li class="divider"></li> {% endif %} {% if not settings.MASTER_HELIOS %} @@ -88,13 +88,13 @@ </span>--> {% if user %} logged in as <b>{{user.display_html_small|safe}}</b> - <a class="tiny button" href="{% url helios_auth.views.logout %}?return_url={{CURRENT_URL}}">logout</a><br /> + <a class="tiny button" href="{% url "helios_auth.views.logout" %}?return_url={{CURRENT_URL}}">logout</a><br /> {% else %} {% if voter %} - You are signed in as voter <u>{% if voter.alias %}{{voter.alias}}{% else %}{{voter.name}}{% endif %}</u> in election <u>{{voter.election.name}}</u>. [<a href="{{settings.SECURE_URL_HOST}}{% url helios_auth.views.logout %}?return_url={{CURRENT_URL}}">sign out</a>] + You are signed in as voter <u>{% if voter.alias %}{{voter.alias}}{% else %}{{voter.name}}{% endif %}</u> in election <u>{{voter.election.name}}</u>. [<a href="{{settings.SECURE_URL_HOST}}{% url "helios_auth.views.logout" %}?return_url={{CURRENT_URL}}">sign out</a>] {% else %} {% if settings.SHOW_LOGIN_OPTIONS %} - not logged in. <a class="tiny button" href="{{settings.SECURE_URL_HOST}}{% url helios_auth.views.index %}?return_url={{CURRENT_URL}}">log in</a> + not logged in. <a class="tiny button" href="{{settings.SECURE_URL_HOST}}{% url "helios_auth.views.index" %}?return_url={{CURRENT_URL}}">log in</a> {% else %} powered by <a href="http://heliosvoting.org">Helios Voting</a>. {% endif %} -- GitLab