From da3626ec66ed1023068200505d6ce4af1399683b Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Wed, 16 May 2018 21:57:49 -0400 Subject: [PATCH] Hide event invite buttons when the event is over --- .../get_together/events/manage_attendees.html | 7 ++++- .../get_together/events/show_event.html | 30 ++++++++++--------- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/get_together/templates/get_together/events/manage_attendees.html b/get_together/templates/get_together/events/manage_attendees.html index a1fc9fa..e43c7de 100644 --- a/get_together/templates/get_together/events/manage_attendees.html +++ b/get_together/templates/get_together/events/manage_attendees.html @@ -24,7 +24,12 @@

{{attendees.count}} Attendees for {{ event.name }}

-

Invite Attendees

+ +

+ {% if not event.is_over %} + Invite Attendees + {% endif %} +

diff --git a/get_together/templates/get_together/events/show_event.html b/get_together/templates/get_together/events/show_event.html index 0e97571..62c7e1e 100644 --- a/get_together/templates/get_together/events/show_event.html +++ b/get_together/templates/get_together/events/show_event.html @@ -102,9 +102,6 @@

{{ event.name }}

Hosted by {{ team.name }}

- {% if can_edit_team or is_email_confirmed %} - Invite - {% endif %} {% if settings.SOCIAL_AUTH_TWITTER_KEY %} Tweet {% endif %} @@ -114,17 +111,22 @@ {% if settings.SOCIAL_AUTH_LINKEDIN_KEY %} Share {% endif %} - {% if not event.is_over and not is_attending %} -
- Attend - - -
+ {% if not event.is_over %} + {% if can_edit_team or is_email_confirmed %} + Invite + {% endif %} + {% if not is_attending %} +
+ Attend + + +
+ {% endif %} {% endif %} {% if can_edit_event %}