diff options
author | pnshiralkar | 2020-05-18 20:51:47 +0530 |
---|---|---|
committer | pnshiralkar | 2020-05-18 20:51:47 +0530 |
commit | 5d8b002b48da791b090314a2df3e500734b5b62f (patch) | |
tree | 6e037ca08fa4e8f9c57920562615a3f0b136c1ce /workshop_app/templates | |
parent | a950ed30df4186cee4f08cbde8ad8a210d134e8b (diff) | |
download | workshop_booking-5d8b002b48da791b090314a2df3e500734b5b62f.tar.gz workshop_booking-5d8b002b48da791b090314a2df3e500734b5b62f.tar.bz2 workshop_booking-5d8b002b48da791b090314a2df3e500734b5b62f.zip |
Renamed model WorkshopComments to Comments and added hidden tag to the non-public comments
Diffstat (limited to 'workshop_app/templates')
-rw-r--r-- | workshop_app/templates/workshop_app/workshop_details.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/workshop_app/templates/workshop_app/workshop_details.html b/workshop_app/templates/workshop_app/workshop_details.html index 3ca5a50..388b204 100644 --- a/workshop_app/templates/workshop_app/workshop_details.html +++ b/workshop_app/templates/workshop_app/workshop_details.html @@ -49,9 +49,12 @@ <div class="card my-2"> <div class="card-header"> <div class="row"> - <div class="mx-3 font-weight-bold"><a + <div class="ml-3 font-weight-bold"><a href="{% url 'view_profile' comment.author_id %}">{{ comment.author }}</a></div> - <div class="text-muted">{{ comment.created_date }}</div> + {% if not comment.public %} + <div class="ml-1"><span class="badge badge-dark">Hidden</span></div> + {% endif %} + <div class="ml-3 text-muted">{{ comment.created_date }}</div> </div> </div> <div class="card-body"> |