aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/base/dashboard/landing.html
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2020-10-02 16:41:31 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-10-02 16:41:31 +0000
commit8a06cdd7d55fabcc71d7034481f7b83ee94611cd (patch)
treed863b2412ea99d954bc3b6e6eec544ef61cf7b68 /src/templates/base/dashboard/landing.html
parent836ba6a22ece7590c203c837669b73259f02540a (diff)
parentedf4c59212c757d81a51fbc8d587bb7384d921fa (diff)
Merge "3 contact us buttons and booking links on landing"
Diffstat (limited to 'src/templates/base/dashboard/landing.html')
-rw-r--r--src/templates/base/dashboard/landing.html17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/templates/base/dashboard/landing.html b/src/templates/base/dashboard/landing.html
index ed50638..ecb12c6 100644
--- a/src/templates/base/dashboard/landing.html
+++ b/src/templates/base/dashboard/landing.html
@@ -16,12 +16,27 @@
{% csrf_token %}
<div class="row">
- <!-- About us -->
<div class="col-12 col-lg-6 mb-4">
+ <!-- About us -->
<h2 class="border-bottom">About Us</h2>
{% block about_us %}
<p>Here is some information about us!</p>
{% endblock about_us %}
+ {% block welcome_back %}
+ {% if user.is_authenticated %}
+ <h2 class="border-bottom">Welcome Back!</h2>
+ {% if bookings %}
+ <h5> These are your current bookings: </h5>
+ <ul style="list-style: none;">
+ {% for book in bookings %}
+ <li><a href="/booking/detail/{{ book.id }}/">{{ book.purpose }}</a></li>
+ {% endfor %}
+ </ul>
+ {% else %}
+ <h5> You have no current bookings <h5>
+ {% endif %}
+ {% endif %}
+ {% endblock welcome_back %}
</div>
<!-- Get started -->