mirror of https://github.com/gogits/gogs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
3.4 KiB
69 lines
3.4 KiB
{{template "ng/base/head" .}} |
|
{{template "ng/base/header" .}} |
|
<div id="repo-wrapper"> |
|
<form id="repo-create-form" class="form form-align panel panel-radius" action="{{AppSubUrl}}{{.RepoLink}}/pull/new" method="post"> |
|
{{.CsrfTokenHtml}} |
|
<div class="panel-header"> |
|
<h2>{{.i18n.Tr "repo.pulls.new"}}</h2> |
|
</div> |
|
<div class="panel-content"> |
|
{{template "ng/base/alert" .}} |
|
<div class="field"> |
|
<label>{{.i18n.Tr "repo.pulls.request_from"}}</label> |
|
<span><a target="_blank" href="{{AppSubUrl}}/{{.RequestFrom}}">{{.RequestFrom}}</a></span> |
|
</div> |
|
<div class="field"> |
|
<label for="from-branch" class="req">{{.i18n.Tr "repo.pulls.from_branch"}}</label> |
|
<input id="from-branch" type="hidden" name="form_branch" value="{{.BranchName}}" /> |
|
<div class="inline-block drop"> |
|
<a class="drop-bottom"> |
|
<strong id="from-branch-name">{{.BranchName}}</strong> |
|
</a> |
|
<ul class="drop-down menu menu-vertical menu-radius switching-list repo-pull-branch-list" id="repo-pull-branch-list"> |
|
{{range .Branches}} |
|
<li {{if eq . $.BranchName}}class="checked"{{end}} data-branch-name="{{.}}" data-target="#from-branch" data-target-show="#from-branch-name"> |
|
<a> |
|
<i class="octicon octicon-check"></i> |
|
<strong>{{.}}</strong> |
|
</a> |
|
</li> |
|
{{end}} |
|
</ul> |
|
</div> |
|
</div> |
|
<div class="field"> |
|
<label>{{.i18n.Tr "repo.pulls.request_to"}}</label> |
|
<span><a target="_blank" href="{{AppSubUrl}}/{{.RequestTo}}">{{.RequestTo}}</a></span> |
|
</div> |
|
<div class="field"> |
|
<label for="to-branch" class="req">{{.i18n.Tr "repo.pulls.to_branch"}}</label> |
|
<input id="to-branch" type="hidden" name="to_branch" value="{{.DefaultBranch}}" /> |
|
<div class="inline-block drop"> |
|
<a class="drop-bottom"> |
|
<strong id="to-branch-name">{{.DefaultBranch}}</strong> |
|
</a> |
|
<ul class="drop-down menu menu-vertical menu-radius switching-list repo-pull-branch-list" id="repo-pull-branch-list"> |
|
{{range .ForkRepo.Branches}} |
|
<li {{if eq . $.DefaultBranch}}class="checked"{{end}} data-branch-name="{{.}}" data-target="#to-branch" data-target-show="#to-branch-name"> |
|
<a> |
|
<i class="octicon octicon-check"></i> |
|
<strong>{{.}}</strong> |
|
</a> |
|
</li> |
|
{{end}} |
|
</ul> |
|
</div> |
|
</div> |
|
<div class="field clear"> |
|
<label class="left req" for="desc">{{.i18n.Tr "repo.repo_desc"}}</label> |
|
<textarea class="ipt ipt-large ipt-radius {{if .Err_Description}}ipt-error{{end}}" id="desc" name="desc" required>{{.desc}}</textarea> |
|
</div> |
|
<div class="field"> |
|
<label></label> |
|
<button class="btn btn-large btn-blue btn-radius">{{.i18n.Tr "repo.pulls.create"}}</button> |
|
<a class="btn btn-small btn-gray btn-radius" id="repo-create-cancel" href="{{AppSubUrl}}{{.RepoLink}}"><strong>{{.i18n.Tr "cancel"}}</strong></a> |
|
</div> |
|
</div> |
|
</form> |
|
</div> |
|
{{template "ng/base/footer" .}} |