-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Optimize team member ux #34593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Optimize team member ux #34593
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,19 @@ | |
{{template "org/header" .}} | ||
<div class="ui container"> | ||
{{template "base/alert" .}} | ||
{{if or .IsOrganizationOwner .IsOrganizationMember}} | ||
<div class="flex-text-block tw-justify-end tw-gap-x-1 tw-gap-y-2 tw-mb-4"> | ||
{{if .IsOrganizationOwner}} | ||
<a class="ui primary button" href="{{.OrgLink}}/teams/new">{{svg "octicon-plus"}} {{ctx.Locale.Tr "org.create_new_team"}}</a> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why members list page should show "add new team"? I guess it should show "add new member" instead? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just like above, there is no mistake. It is indeed about adding a new team. My original intention is to provide a more eye-catching and convenient operation entry on the secondary page. |
||
{{end}} | ||
{{if .IsOrganizationMember}} | ||
<a class="ui primary button" href="{{.OrgLink}}/teams">{{svg "octicon-people"}} {{ctx.Locale.Tr "org.all_teams"}}</a> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't the "all teams" link already in the navbar? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My original intention was to provide a more eye-catching entry on the secondary page. |
||
{{end}} | ||
</div> | ||
{{end}} | ||
{{if and .IsOrganizationOwner .IsOrganizationMember}} | ||
<div class="divider"></div> | ||
{{end}} | ||
<div class="ui stackable grid"> | ||
{{template "org/team/sidebar" .}} | ||
<div class="ui ten wide column"> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH if you have "all teams" here, then the "pager" doesn't make sense any more.