|
|
@ -52,6 +52,7 @@
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted) (not $.IsMirror)}}
|
|
|
|
{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted) (not $.IsMirror)}}
|
|
|
|
<button class="ui tertiary button show-modal show-rename-branch-modal gt-mx-3"
|
|
|
|
<button class="ui tertiary button show-modal show-rename-branch-modal gt-mx-3"
|
|
|
|
|
|
|
|
data-is-default-branch="true"
|
|
|
|
data-modal="#rename-branch-modal"
|
|
|
|
data-modal="#rename-branch-modal"
|
|
|
|
data-old-branch-name="{{$.DefaultBranch}}"
|
|
|
|
data-old-branch-name="{{$.DefaultBranch}}"
|
|
|
|
data-tooltip-content="{{$.locale.Tr "repo.branch.rename" ($.DefaultBranch)}}"
|
|
|
|
data-tooltip-content="{{$.locale.Tr "repo.branch.rename" ($.DefaultBranch)}}"
|
|
|
@ -158,6 +159,7 @@
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted) (not $.IsMirror)}}
|
|
|
|
{{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted) (not $.IsMirror)}}
|
|
|
|
<button class="ui tertiary button show-modal show-rename-branch-modal gt-mx-3"
|
|
|
|
<button class="ui tertiary button show-modal show-rename-branch-modal gt-mx-3"
|
|
|
|
|
|
|
|
data-is-default-branch="false"
|
|
|
|
data-old-branch-name="{{.Name}}"
|
|
|
|
data-old-branch-name="{{.Name}}"
|
|
|
|
data-modal="#rename-branch-modal"
|
|
|
|
data-modal="#rename-branch-modal"
|
|
|
|
data-tooltip-content="{{$.locale.Tr "repo.branch.rename" (.Name)}}"
|
|
|
|
data-tooltip-content="{{$.locale.Tr "repo.branch.rename" (.Name)}}"
|
|
|
@ -229,6 +231,9 @@
|
|
|
|
<form class="ui form" action="{{$.Repository.Link}}/settings/rename_branch" method="post">
|
|
|
|
<form class="ui form" action="{{$.Repository.Link}}/settings/rename_branch" method="post">
|
|
|
|
<div class="content">
|
|
|
|
<div class="content">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
|
|
|
|
<div class="field default-branch-warning">
|
|
|
|
|
|
|
|
<span class="text red">{{.locale.Tr "repo.branch.warning_raname_default_branch"}}</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="field">
|
|
|
|
<span class="text" data-rename-branch-to="{{.locale.Tr "repo.branch.rename_branch_to"}}"></span>
|
|
|
|
<span class="text" data-rename-branch-to="{{.locale.Tr "repo.branch.rename_branch_to"}}"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|