diff options
author | Marius Peter <marius.peter@tutanota.com> | 2022-05-15 13:16:37 +0200 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2022-05-15 13:16:37 +0200 |
commit | 1dad22d3e45d6506c8624e3a7111240fcc4ab786 (patch) | |
tree | 35d2c1e84215c6e6a52979bbff0cbc2e8cf77ace /app/templates/home.html | |
parent | 3aee6067123cd8afd985f68847e6bb476a853bb0 (diff) |
Templates.
Diffstat (limited to 'app/templates/home.html')
-rw-r--r-- | app/templates/home.html | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/app/templates/home.html b/app/templates/home.html index f518554..ace98e9 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -3,20 +3,32 @@ {% extends "base.html" %} {% block title %} -Welcome, {{ user.name_first }}! +{% if current_user.is_authenticated %} +Welcome, {{ user.name_first }} {{ user.name_last }}! +{% else %} +Welcome to the ERP for the FAPG! +{% endif %} {% endblock %} +{% block actions %} +<li><a href="{{ url_for('main.download_database') }}" class="button">Download database</a></li> +{% endblock %} {% block content %} - -<p>You are logged in as <strong>{{ user }}</strong> on - project <strong>{{ project }}</strong>.</p> - <h2>Available modules</h2> <dl> {% for module in modules %} - <dt style="font-weight: bold">{{ module.name }}</dt><dd>{{ module.description }}<dd> - {% endfor %} + <dt> + {% if current_user.is_authenticated %} + {# Send to actual module page #} + <a href="/modules/{{ module.name }}">{{ module.name }}</a> + {% else %} + {# Send to module promo section #} + <a href="/modules#{{ module.name }}">{{ module.name }}</a> + {% endif %} + </dt> + <dd>{{ module.description }}</dd> + {% endfor %} </dl> {% endblock %} |