From 5b2cd98ae5b61ba28265373b0d30ca42f502865d Mon Sep 17 00:00:00 2001 From: Ethan Nguyen <etnguyen03@hotmail.com> Date: Mon, 10 Apr 2023 23:02:34 -0500 Subject: [PATCH] fix(profile): only show banner to seniors --- tjdests/templates/profile/profile.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tjdests/templates/profile/profile.html b/tjdests/templates/profile/profile.html index 08d7b6a..3c503de 100644 --- a/tjdests/templates/profile/profile.html +++ b/tjdests/templates/profile/profile.html @@ -9,14 +9,14 @@ {% else %} <p id="without-nickname">You are {{ request.user.username }}, {{ request.user.first_name }} {{ request.user.last_name }}.</p> {% endif %} - {% if not request.user.publish_data %} - <div class="alert alert-warning" role="alert"> - Your profile is currently hidden. You can publish your profile by marking the "publish my data" checkbox and submit this form. - </div> - {% endif %} <h4>Personal Information, Data Publication, College Attending, Biography</h4> <div class="container"> {% if request.user.is_senior %} + {% if not request.user.publish_data %} + <div class="alert alert-warning" role="alert"> + Your profile is currently hidden. You can publish your profile by marking the "publish my data" checkbox and submit this form. + </div> + {% endif %} {% crispy profile_form %} {% else %} <p>You are not a senior, so you cannot publish data.</p>