From 1dad22d3e45d6506c8624e3a7111240fcc4ab786 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Sun, 15 May 2022 13:16:37 +0200 Subject: Templates. --- app/templates/home.html | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'app/templates/home.html') 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 %} +
  • Download database
  • +{% endblock %} {% block content %} - -

    You are logged in as {{ user }} on - project {{ project }}.

    -

    Available modules

    {% for module in modules %} -
    {{ module.name }}
    {{ module.description }}
    - {% endfor %} +
    + {% if current_user.is_authenticated %} + {# Send to actual module page #} + {{ module.name }} + {% else %} + {# Send to module promo section #} + {{ module.name }} + {% endif %} +
    +
    {{ module.description }}
    + {% endfor %}
    {% endblock %} -- cgit v1.2.3