-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented User Badge Management Interface (#29798)
Co-authored-by: Diogo Vicente <[email protected]>
- Loading branch information
1 parent
7e734b6
commit 91b085b
Showing
9 changed files
with
156 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}} | ||
<div class="repo-setting-content"> | ||
<h4 class="ui top attached header"> | ||
{{.Title}} | ||
</h4> | ||
{{if .Users}} | ||
<div class="ui attached segment"> | ||
<div class="flex-list"> | ||
{{range .Users}} | ||
<div class="flex-item tw-items-center"> | ||
<div class="flex-item-leading"> | ||
<a href="{{.HomeLink}}">{{ctx.AvatarUtils.Avatar . 32}}</a> | ||
</div> | ||
<div class="flex-item-main"> | ||
<div class="flex-item-title"> | ||
{{template "shared/user/name" .}} | ||
</div> | ||
</div> | ||
<div class="flex-item-trailing"> | ||
<button class="ui red tiny button inline delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}"> | ||
{{ctx.Locale.Tr "admin.badges.remove_user"}} | ||
</button> | ||
</div> | ||
</div> | ||
{{end}} | ||
</div> | ||
</div> | ||
{{end}} | ||
<div class="ui bottom attached segment"> | ||
<form class="ui form" id="search-badge-user-form" action="{{.Link}}" method="POST"> | ||
{{.CsrfTokenHtml}} | ||
<div id="search-user-box" class="ui search input tw-align-middle"> | ||
<input class="prompt" name="user" placeholder="{{ctx.Locale.Tr "search.user_kind"}}" autocomplete="off" autofocus required> | ||
</div> | ||
<button class="ui primary button">{{ctx.Locale.Tr "admin.badges.add_user"}}</button> | ||
</form> | ||
</div> | ||
|
||
<div class="ui g-modal-confirm delete modal"> | ||
<div class="header"> | ||
{{svg "octicon-trash"}} | ||
{{ctx.Locale.Tr "admin.badges.remove_user"}} | ||
</div> | ||
<form class="ui form" method="post" id="remove-badge-user-form" action="{{.Link}}"> | ||
<div class="content"> | ||
{{$.CsrfTokenHtml}} | ||
<p>{{ctx.Locale.Tr "admin.badges.delete_user_desc"}}</p> | ||
</div> | ||
{{template "base/modal_actions_confirm" .}} | ||
</form> | ||
</div> | ||
|
||
{{template "admin/layout_footer" .}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters