Display details of user that accepted invitation
This commit is contained in:
parent
c5342cacd4
commit
d368b688d0
@ -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
|
||||
|
@ -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 %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user