diff --git a/eosweb/core/bower.json b/eosweb/core/bower.json index 0c86f5f..9aa3857 100644 --- a/eosweb/core/bower.json +++ b/eosweb/core/bower.json @@ -19,6 +19,7 @@ "semantic": "semantic-ui#^2.2.13", "nunjucks": "^3.0.1", "dragula.js": "dragula#^3.7.2", - "fingerprintjs2": "^1.5.1" + "fingerprintjs2": "^1.5.1", + "progress-tracker": "^1.4.0" } } diff --git a/eosweb/core/static/nunjucks/booth/base.html b/eosweb/core/static/nunjucks/booth/base.html index 225f96b..5efd84d 100644 --- a/eosweb/core/static/nunjucks/booth/base.html +++ b/eosweb/core/static/nunjucks/booth/base.html @@ -1,6 +1,6 @@ {# Eos - Verifiable elections - Copyright © 2017 RunasSudo (Yingtong Li) + Copyright © 2017-18 RunasSudo (Yingtong Li) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by @@ -23,7 +23,7 @@ {# Convert the template name to a numerical index for comparison #} {% if template == 'booth/welcome.html' %} {% set menuindex = 1 %} -{% elif template == 'booth/selections.html' %} +{% elif template == 'booth/selections.html' or template == 'booth/encrypt.html' %} {% set menuindex = 2 %} {% elif template == 'booth/review.html' %} {% set menuindex = 3 %} @@ -35,14 +35,23 @@ {% set menuindex = 6 %} {% endif %} - +{% macro menuitem(index, text) %} + +{% endmacro %} + +
{% block content %}{% endblock %} diff --git a/eosweb/core/static/nunjucks/booth/encrypt.html b/eosweb/core/static/nunjucks/booth/encrypt.html index e797030..027b3df 100644 --- a/eosweb/core/static/nunjucks/booth/encrypt.html +++ b/eosweb/core/static/nunjucks/booth/encrypt.html @@ -1,6 +1,8 @@ +{% extends templates['booth/base.html'] %} + {# Eos - Verifiable elections - Copyright © 2017 RunasSudo (Yingtong Li) + Copyright © 2017-18 RunasSudo (Yingtong Li) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by @@ -16,62 +18,68 @@ along with this program. If not, see . #} -
Preparing your ballot. Please wait.
+{% block content %} +
+
Preparing your ballot. Please wait.
+
+{% endblock %} - + +{% endblock %} diff --git a/eosweb/core/templates/election/view/booth.html b/eosweb/core/templates/election/view/booth.html index 9bf85e7..907d73e 100644 --- a/eosweb/core/templates/election/view/booth.html +++ b/eosweb/core/templates/election/view/booth.html @@ -2,7 +2,7 @@ {# Eos - Verifiable elections - Copyright © 2017 RunasSudo (Yingtong Li) + Copyright © 2017-18 RunasSudo (Yingtong Li) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by @@ -23,6 +23,7 @@ {% block head %} {{ super() }} + {% endblock %} {% block content %}