From cfca647b4c7f40b1283ffff158be971d953275d8 Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Fri, 4 Jan 2019 09:38:43 -0500 Subject: Fix landing page directions for not-logged-in users Users will see a more informative landing page that directs them to log in if they have not yet done so, rather than displaying actions they can not yet take and having a required login get triggered later Change-Id: I9812367930665614933551f780f4c6726ff3049c Signed-off-by: Sawyer Bergeron --- dashboard/src/templates/dashboard/landing.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'dashboard/src') diff --git a/dashboard/src/templates/dashboard/landing.html b/dashboard/src/templates/dashboard/landing.html index 867477a..71d2706 100644 --- a/dashboard/src/templates/dashboard/landing.html +++ b/dashboard/src/templates/dashboard/landing.html @@ -3,12 +3,16 @@ {% block content %}
+ {% if not request.user.is_anonymous %} {% if not request.user.userprofile.ssh_public_key %}

Warning: you need to upload an ssh key under account settings if you wish to log into the servers you book

{% endif %} -

Welcome to the Pharos Dashboard! To get started, select one of the options below:

+

Welcome to the Pharos Dashboard! To get started, select one of the options below:

+ {% else %} +

Welcome to the Pharos Dashboard! To get started, please log in with your Linux Foundation Jira account

+ {% endif %}
{% csrf_token %} @@ -33,6 +37,7 @@ grid-template-columns: 33% 34% 33%; } +{% if not request.user.is_anonymous %}
@@ -41,6 +46,7 @@ {% if manager == True %} {% endif %} +{% endif %}
-- cgit 1.2.3-korg