aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/templates/home.html
diff options
context:
space:
mode:
author0livd <github@destras.fr>2017-09-04 15:44:20 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2017-09-04 15:44:20 +0200
commit7a918c93498c2eb4f85b3b0198c03f3c2edf51fe (patch)
tree885fe498c3f27acb8fc73f5d37765c7e42669762 /ihatemoney/templates/home.html
parentee1ecbf3e747daa711744a05027a667a302cc7e9 (diff)
downloadihatemoney-mirror-7a918c93498c2eb4f85b3b0198c03f3c2edf51fe.zip
ihatemoney-mirror-7a918c93498c2eb4f85b3b0198c03f3c2edf51fe.tar.gz
ihatemoney-mirror-7a918c93498c2eb4f85b3b0198c03f3c2edf51fe.tar.bz2
Enhance the dashboard. (#262)
* Update to a more flexible admin authentication * Admin can now access any project * Add delete and edit options in the dashboard * Add a link to the dashboard in the nav bar This is a rework of the changes proposed by @Olivd, so they can apply on top of the latest master without trouble. All credit goes to him for the code.
Diffstat (limited to 'ihatemoney/templates/home.html')
-rw-r--r--ihatemoney/templates/home.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/ihatemoney/templates/home.html b/ihatemoney/templates/home.html
index 9bfe467..a628ecc 100644
--- a/ihatemoney/templates/home.html
+++ b/ihatemoney/templates/home.html
@@ -28,9 +28,7 @@
</form>
</div>
<div class="col-xs-12 col-sm-5 col-md-3 offset-sm-1">
- {% if is_admin_mode_enabled %}
- <a href="{{ url_for(".create_project") }}">...{{ _("or create a new one") }}</a>
- {% else %}
+ {% if is_public_project_creation_allowed %}
<form id="creation-form" class="form-horizontal" action="{{ url_for(".create_project") }}" method="post">
<fieldset class="form-group">
<legend>...{{ _("or create a new one") }}</legend>
@@ -40,6 +38,8 @@
<button class="btn" type="submit">{{ _("let's get started") }}</button>
</div>
</form>
+ {% else %}
+ <a href="{{ url_for(".create_project") }}">...{{ _("or create a new one") }}</a>
{% endif %}
</main>
</div>