code.gitea.io/gitea@v1.22.3/templates/repo/pulls/fork.tmpl (about) 1 {{template "base/head" .}} 2 <div role="main" aria-label="{{.Title}}" class="page-content repository new fork"> 3 <div class="ui middle very relaxed page grid"> 4 <div class="column"> 5 <form class="ui form" action="{{.Link}}" method="post"> 6 {{.CsrfTokenHtml}} 7 <h3 class="ui top attached header"> 8 {{ctx.Locale.Tr "new_fork"}} 9 </h3> 10 <div class="ui attached segment"> 11 {{template "base/alert" .}} 12 <div class="inline required field {{if .Err_Owner}}error{{end}}"> 13 <label>{{ctx.Locale.Tr "repo.owner"}}</label> 14 <div class="ui selection owner dropdown"> 15 <input type="hidden" id="uid" name="uid" value="{{.ContextUser.ID}}" required> 16 <span class="text truncated-item-container" title="{{.ContextUser.Name}}"> 17 {{ctx.AvatarUtils.Avatar .ContextUser 28 "mini"}} 18 <span class="truncated-item-name">{{.ContextUser.ShortName 40}}</span> 19 </span> 20 {{svg "octicon-triangle-down" 14 "dropdown icon"}} 21 <div class="menu"> 22 {{if .CanForkToUser}} 23 <div class="item truncated-item-container" data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}"> 24 {{ctx.AvatarUtils.Avatar .SignedUser 28 "mini"}} 25 <span class="truncated-item-name">{{.SignedUser.ShortName 40}}</span> 26 </div> 27 {{end}} 28 {{range .Orgs}} 29 <div class="item truncated-item-container" data-value="{{.ID}}" title="{{.Name}}"> 30 {{ctx.AvatarUtils.Avatar . 28 "mini"}} 31 <span class="truncated-item-name">{{.ShortName 40}}</span> 32 </div> 33 {{end}} 34 </div> 35 </div> 36 </div> 37 38 <div class="inline field"> 39 <label>{{ctx.Locale.Tr "repo.fork_from"}}</label> 40 <a href="{{.ForkRepo.Link}}" class="tw-inline-block">{{.ForkRepo.FullName}}</a> 41 </div> 42 <div class="inline required field {{if .Err_RepoName}}error{{end}}"> 43 <label for="repo_name">{{ctx.Locale.Tr "repo.repo_name"}}</label> 44 <input id="repo_name" name="repo_name" value="{{.repo_name}}" required> 45 </div> 46 <div class="inline field"> 47 <label>{{ctx.Locale.Tr "repo.visibility"}}</label> 48 <div class="ui disabled checkbox"> 49 <input type="checkbox" disabled {{if .IsPrivate}}checked{{end}}> 50 <label>{{ctx.Locale.Tr "repo.visibility_helper"}}</label> 51 </div> 52 <span class="help">{{ctx.Locale.Tr "repo.fork_visibility_helper"}}</span> 53 </div> 54 <div class="inline field"> 55 <label>{{ctx.Locale.Tr "repo.fork_branch"}}</label> 56 <div class="ui selection dropdown"> 57 <input type="hidden" id="fork_single_branch" name="fork_single_branch" value="" required> 58 <span class="text truncated-item-container" data-value="" title="{{ctx.Locale.Tr "repo.all_branches"}}"> 59 <span class="truncated-item-name">{{ctx.Locale.Tr "repo.all_branches"}}</span> 60 </span> 61 {{svg "octicon-triangle-down" 14 "dropdown icon"}} 62 <div class="menu"> 63 <div class="item truncated-item-container" data-value="" title="{{ctx.Locale.Tr "repo.all_branches"}}"> 64 <span class="truncated-item-name">{{ctx.Locale.Tr "repo.all_branches"}}</span> 65 </div> 66 {{range .Branches}} 67 <div class="item truncated-item-container" data-value="{{.}}" title="{{.}}"> 68 <span class="truncated-item-name">{{.}}</span> 69 </div> 70 {{end}} 71 </div> 72 </div> 73 </div> 74 <div class="inline field {{if .Err_Description}}error{{end}}"> 75 <label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label> 76 <textarea id="description" name="description">{{.description}}</textarea> 77 </div> 78 79 <div class="inline field"> 80 <label></label> 81 <button class="ui primary button{{if not .CanForkRepo}} disabled{{end}}"> 82 {{ctx.Locale.Tr "repo.fork_repo"}} 83 </button> 84 </div> 85 </div> 86 </form> 87 </div> 88 </div> 89 </div> 90 {{template "base/footer" .}}