From d33d6c4e7d72a2456be63b753e6e66ea7a8b028d Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Fri, 18 Jan 2019 16:14:00 -0500 Subject: Make landing page less sparse Change-Id: If661574fd0c62e208651507ccff844cf6f14e914 Signed-off-by: Sawyer Bergeron --- src/dashboard/views.py | 2 +- src/templates/base.html | 5 ++- src/templates/dashboard/landing.html | 71 ++++++++++++++++++++++++++++-------- 3 files changed, 60 insertions(+), 18 deletions(-) (limited to 'src') diff --git a/src/dashboard/views.py b/src/dashboard/views.py index 36c3253..c4a6685 100644 --- a/src/dashboard/views.py +++ b/src/dashboard/views.py @@ -78,7 +78,7 @@ def landing_view(request): manager_detected = True if request.method == 'GET': - return render(request, 'dashboard/landing.html', {'manager': manager_detected, 'title': "Welcome!"}) + return render(request, 'dashboard/landing.html', {'manager': manager_detected, 'title': "Welcome to the Lab as a Service Dashboard"}) if request.method == 'POST': try: diff --git a/src/templates/base.html b/src/templates/base.html index 067c3e6..f7fa7cd 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -129,8 +129,9 @@ {% csrf_token %} diff --git a/src/templates/dashboard/landing.html b/src/templates/dashboard/landing.html index 6bbb25b..fb75d5f 100644 --- a/src/templates/dashboard/landing.html +++ b/src/templates/dashboard/landing.html @@ -2,16 +2,14 @@ {% load staticfiles %} {% 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! For more info on LaaS, check here. To get started, select one of the options below:

{% else %} -

Welcome to the Pharos Dashboard! For more info on LaaS, check here. To get started, please log in with your Linux Foundation Jira account

{% endif %}
{% csrf_token %} @@ -36,20 +34,63 @@ display: grid; grid-template-columns: 33% 34% 33%; } + + .landing_container { + display: grid; + grid-template-columns: 1fr 30px 1fr; + } + .grid_panel { + padding: 30px; + } + .btn-primary { + margin: 10px; + } + h2 { + border-bottom: 1px solid #cccccc; + } + h1 { + } -{% if not request.user.is_anonymous %} -
-Create a Quick Booking - - - - -{% if manager == True %} - -{% endif %} -{% endif %} +
+
+

About Us:

+

The Lab as a Service (LaaS) project aims to help in the development and testing of LFN projects such as OPNFV by hosting hardware and providing access to the community. Currently, the only participating lab is the University of New Hampshire Interoperability Lab (UNH-IOL).

+

To get started, you can request access to a server at the right. PTL's have the ability to design and book a whole block of servers with customized layer2 networks (e.g. a Pharos Pod). Read more here: LaaS Wiki

+ + {% if not request.user.is_anonymous %} +

Returning Users:

+

If you're a returning user, some of the following options may be of interest:

+ + My Bookings + {% if manager == True %} + + {% endif %} + {% endif %} +
+
+
+
+

Get Started:

+ {% if request.user.is_anonymous %} +

To get started, please log in with your Linux Foundation Jira account

+ {% else %} +

To get started, book a server below:

+

Book a Server

+

PTLs can use our advanced options to book multi-node pods. If you are a PTL, you may use the options below:

+
+ + + + + {% endif %} +
+
+ + + +