{{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>
<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>
</div><!-- end grid -->
</div><!-- end container -->
{{end}}
-{{if not .IsDiffCompare}}
+
<div class="ui tabs container">
<div class="ui tabular stackable menu navbar">
{{if .Permission.CanRead $.UnitTypeCode}}
</div>
</div>
<div class="ui tabs divider"></div>
-{{else}}
- <div class="ui divider"></div>
-{{end}}
+
</div>
</form>
</div>
</div>
+ {{ else if .Repository.IsArchived }}
+ <div class="ui warning message">
+ {{if .Issue.IsPull}}
+ {{.i18n.Tr "repo.archive.pull.nocomment"}}
+ {{else}}
+ {{.i18n.Tr "repo.archive.issue.nocomment"}}
+ {{end}}
+ </div>
{{ end }}
{{else}}
{{if .Repository.IsArchived}}