aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/base/dashboard
diff options
context:
space:
mode:
authorSean Smith <ssmith@iol.unh.edu>2020-09-18 15:26:53 -0400
committerSean Smith <ssmith@iol.unh.edu>2020-09-18 15:52:47 -0400
commitedf4c59212c757d81a51fbc8d587bb7384d921fa (patch)
tree490a9f8d23fd8e8fb8c5b2877147af80b840beff /src/templates/base/dashboard
parent1ca205371c3306a23a817d9ea617c1a0596f7912 (diff)
3 contact us buttons and booking links on landing
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: Ic50767e566f06d34457b6543644eeee03e584b89
Diffstat (limited to 'src/templates/base/dashboard')
-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 -->