|
|
@ -5,8 +5,12 @@ |
|
|
|
|
|
|
|
{{if .PageIsComparePull}} |
|
|
|
<h2 class="ui header"> |
|
|
|
{{.i18n.Tr "repo.pulls.compare_changes"}} |
|
|
|
<div class="sub header">{{.i18n.Tr "repo.pulls.compare_changes_desc"}}</div> |
|
|
|
{{if not .Repository.IsArchived}} |
|
|
|
{{.i18n.Tr "repo.pulls.compare_changes"}} |
|
|
|
<div class="sub header">{{.i18n.Tr "repo.pulls.compare_changes_desc"}}</div> |
|
|
|
{{ else }} |
|
|
|
{{.i18n.Tr "action.compare_commits_general"}} |
|
|
|
{{ end }} |
|
|
|
</h2> |
|
|
|
<div class="ui segment choose branch"> |
|
|
|
<span class="octicon octicon-git-compare"></span> |
|
|
@ -60,7 +64,11 @@ |
|
|
|
<div class="ui info message show-form-container"> |
|
|
|
<button class="ui button green show-form">{{.i18n.Tr "repo.pulls.new"}}</button> |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
{{ else }} |
|
|
|
<div class="ui warning message"> |
|
|
|
{{.i18n.Tr "repo.archive.title"}} |
|
|
|
</div> |
|
|
|
{{ end }} |
|
|
|
<div class="pullrequest-form" style="display: none"> |
|
|
|
{{template "repo/issue/new_form" .}} |
|
|
|
</div> |
|
|
|