Display details of user that accepted invitation

This commit is contained in:
richard-dds 2018-11-28 16:54:41 -05:00
parent c5342cacd4
commit d368b688d0
2 changed files with 7 additions and 4 deletions

View File

@ -112,3 +112,7 @@ class Invitation(Base, TimestampsMixin, AuditableMixin):
change_set["status"] = [s.name for s in changes["status"]]
return change_set
@property
def workspace_id(self):
return self.workspace_role.workspace_id

View File

@ -42,10 +42,9 @@
<br>
{% elif event.event_details and event.resource_type == "invitation" %}
{% set now_pending = event.changed_state.status and event.changed_state.status.1 == "PENDING" %}
{% if now_pending %}
now pending
{{ event.changed_state.status.1 }}
{% set accepted = event.changed_state.status and event.changed_state.status.1 == "ACCEPTED" %}
{% if accepted %}
accepted by {{ event.event_details.email }} (DOD <code>{{ event.event_details.dod_id }}</code>)
{% endif %}
{% endif %}