aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/dashboard
diff options
context:
space:
mode:
authorSawyer Bergeron <sawyerbergeron@gmail.com>2019-01-03 14:39:47 -0500
committerSawyer Bergeron <sawyerbergeron@gmail.com>2019-01-03 14:39:47 -0500
commitee0534cdb53c90d724d818c69595662ac3c59269 (patch)
treed18724abfc166b07a852aa1ae3baafd6a90573fb /src/templates/dashboard
parenta104c5c294a006a0770fed1e34aca0a580d59498 (diff)
Alert users that ssh key is required
Any users that have not uploaded an ssh key will see a message on the landing page that they need to upload one. Message is not seen by people who have already uploaded a key Change-Id: I01667e161521d801090173d47815abbeff094907 Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
Diffstat (limited to 'src/templates/dashboard')
-rw-r--r--src/templates/dashboard/landing.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/templates/dashboard/landing.html b/src/templates/dashboard/landing.html
index b1eec86..0b468e5 100644
--- a/src/templates/dashboard/landing.html
+++ b/src/templates/dashboard/landing.html
@@ -3,6 +3,11 @@
{% block content %}
<div class="">
+ {% if not request.user.userprofile.ssh_public_key %}
+ <h4 style="text-align: center; background: #AA0000; color: #FFFFFF; padding: 10px; border-radius: 3px; height: 40px;">
+ Warning: you need to upload an ssh key under <a href="/accounts/settings">account settings</a> if you wish to log into the servers you book
+ </h4>
+ {% endif %}
<p style="text-align:center;">Welcome to the Pharos Dashboard! To get started, select one of the options below:</p>
</div>
{% csrf_token %}