diff options
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 %} |