Skip to content

Commit

Permalink
Added comment and made the changes on the banner to update the text a…
Browse files Browse the repository at this point in the history
…dd the current time.
  • Loading branch information
dea committed Jul 16, 2024
1 parent 760853c commit ad4618c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/templates/eventNav.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
{% if eventPast and event.isCanceled %}
This is a past event and it was canceled.
{% elif isInProg %}
This event is happening right now
This event is in-progress! It started at {{event.timeStart.strftime("%I:%M %p")}}.
{% elif eventPast %}
This event ended on {{ formatted_date }} at {{ event.timeEnd.strftime("%I:%M %p") }}
This event ended on {{ formatted_date }} at {{ event.timeEnd.strftime("%I:%M %p") }}.
{% elif event.isCanceled %}
This event has been canceled.
{% endif %}
Expand Down
3 changes: 2 additions & 1 deletion app/templates/eventView.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{% set isPastEnd = event.isPastEnd %}
{% set tabName = 'view' %}
{% extends "eventNav.html"%}
<!-- Without eventPast view event cannot use it when called through eventNav -->
{% set eventPast = event.isPastStart if not isNewEvent else False %}

{% block scripts %}
Expand Down Expand Up @@ -67,7 +68,7 @@ <h5 id="location"style="margin: 0;">Location:</h5>
<br>
<div>
{% if eventData.isRsvpRequired %}
{% if eventPast != event.isPastEnd %}
{% if not event.isPastStart %}
{% if userHasRSVPed %}
<button type="submit" class="btn btn-danger" value="{{eventData.id}}" id="removeRsvpBtn">Remove RSVP</button>
{% elif eventData.isRsvpRequired %}
Expand Down

0 comments on commit ad4618c

Please sign in to comment.