mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 12:14:27 +02:00
Extract the repeated user and team dropdowns of the branch and tag protection forms into shared templates, keeping the same fields and rendered output. Co-authored-by: Enoque Duarte <12515551+enoquefcd@users.noreply.github.com> Co-authored-by: silverwind <me@silverwind.io>
12 lines
374 B
Handlebars
12 lines
374 B
Handlebars
<div class="ui multiple search selection dropdown">
|
|
<input type="hidden" name="{{.Name}}" value="{{.Value}}">
|
|
<div class="default text">{{ctx.Locale.Tr "search.user_kind"}}</div>
|
|
<div class="menu">
|
|
{{range .Users}}
|
|
<div class="item" data-value="{{.ID}}">
|
|
{{ctx.AvatarUtils.Avatar . 28 "mini"}}{{template "repo/search_name" .}}
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|