Skip to content

Commit 4791bf9

Browse files
committed
teams: new Add Team Member button
Per the discussion on #22054, the flow for adding a new team mamber is not intuitive for new Gitea users. The ideal solution would be to add a new button on the Org > Members index view (see the screenshot mockup in the issue description). However, this would require a refactor of the UX for the flow. The current flow has an implicit context of which team within the org the new member is being added to. From the Members index, there is no implicit context; the flow would have to add a picker for which team the new member should be added to. So, as a stopgap, this change simply adds a button to the Teams index page that performs the same action as clicking on the title of the team (a behavior that is currently too obscure as indicated in the comments on the issue). This should reduce support burden and serve as a decent temporary measure until the Add Member flow is refactored.
1 parent 80a0ab3 commit 4791bf9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

templates/org/team/teams.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
<div class="ui top attached header">
1717
<a class="text black" href="{{$.OrgLink}}/teams/{{.LowerName | PathEscape}}"><strong>{{.Name}}</strong></a>
1818
<div class="ui right">
19+
{{if $.IsOrganizationOwner}}
20+
<a class="btn ui primary small button" href="{{$.OrgLink}}/teams/{{.LowerName | PathEscape}}">{{ctx.Locale.Tr "org.teams.add_team_member"}}</a>
21+
{{end}}
1922
{{if .IsMember ctx $.SignedUser.ID}}
2023
<form>
2124
<button class="ui red tiny button delete-button" data-modal-id="leave-team"

0 commit comments

Comments
 (0)