$# This file is part of Vervis. $# $# Written in 2016, 2019, 2022, 2023, 2024 $# by fr33domlover . $# $# ♡ Copying is an act of love. Please copy, reuse and share. $# $# The author(s) have dedicated all copyright and related and neighboring $# rights to this software to the public domain worldwide. This software is $# distributed without any warranty. $# $# You should have received a copy of the CC0 Public Domain Dedication along $# with this software. If not, see $# . $maybe ((removeTeamR, addTeamR, _approveTeamR), teams, _drafts) <- teamsAndDrafts

Teams
Role Since Team $if haveAdmin Remove $forall (role, since, team, squadID) <- teams
#{show role} #{showDate since} ^{groupLinkFedW team} $if haveAdmin ^{buttonW POST "Remove" (removeTeamR squadID)} $if haveAdmin

Add a team:

^{widgetAT}

Collaborators
Role Since Collaborator $if haveAdmin Remove $forall (role, since, person, collabID) <- collabs
#{show role} #{showDate since} ^{personLinkFedW person} $if haveAdmin ^{buttonW POST "Remove" (removeR collabID)} $if haveAdmin

Invite a collaborator: ^{widgetIC} $maybe ((_removeTeamR, _addTeamR, approveTeamR), _teams, drafts) <- teamsAndDrafts

Team Invites
Inviter Via Invited team I accepted? Role Time $if haveAdmin Approve $forall (inviter, us, team, accept, time, role, squadID) <- drafts
^{actorLinkFedW inviter} $if us Us $else Them ^{groupLinkFedW team} $if accept [x] $else [_] #{show role} #{showDate time} $if haveAdmin && (not accept && not us) ^{buttonW POST "Approve" (approveTeamR squadID)}

Invites
Inviter Role Time Collaborator $forall (role, time, inviter, invitee, _collabID) <- invites
^{personLinkFedW inviter} #{show role} #{showDate time} ^{personLinkFedW invitee}

Joins
Role Time Collaborator $forall (role, time, person, _collabID) <- joins
#{show role} #{showDate time} ^{personLinkFedW person}