From: Sawyer Bergeron Date: Fri, 4 Jan 2019 14:38:43 +0000 (-0500) Subject: Fix landing page directions for not-logged-in users X-Git-Tag: 2.0.99~168 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=18ea74d35cab34b5e1c1e1c8bf4f8e1c9af79a51;p=laas.git 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 --- diff --git a/src/templates/dashboard/landing.html b/src/templates/dashboard/landing.html index 867477a..71d2706 100644 --- a/src/templates/dashboard/landing.html +++ b/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 %}