File tree Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -1866,6 +1866,7 @@ push_tag = pushed tag <a href="%s/src/tag/%s">%[2]s</a> to <a href="%[1]s">%[3]s
1866
1866
delete_tag = deleted tag %[2]s from <a href="%[1]s">%[3]s</a>
1867
1867
delete_branch = deleted branch %[2]s from <a href="%[1]s">%[3]s</a>
1868
1868
compare_commits = Compare %d commits
1869
+ compare_commits_general = Compare commits
1869
1870
mirror_sync_push = synced commits to <a href="%[1]s/src/%[2]s">%[3]s</a> at <a href="%[1]s">%[4]s</a> from mirror
1870
1871
mirror_sync_create = synced new reference <a href="%s/src/%s">%[2]s</a> to <a href="%[1]s">%[3]s</a> from mirror
1871
1872
mirror_sync_delete = synced and deleted reference <code>%[2]s</code> at <a href="%[1]s">%[3]s</a> from mirror
Original file line number Diff line number Diff line change 56
56
{{.i18n.Tr "repo.pulls.has_pull_request" $.RepoLink $.RepoRelPath .PullRequest.Index | Safe}}
57
57
</div>
58
58
{{else}}
59
+ {{if not .Repository.IsArchived}}
59
60
<div class="ui info message show-form-container">
60
61
<button class="ui button green show-form">{{.i18n.Tr "repo.pulls.new"}}</button>
61
62
</div>
63
+ {{end}}
62
64
<div class="pullrequest-form" style="display: none">
63
65
{{template "repo/issue/new_form" .}}
64
66
</div>
Original file line number Diff line number Diff line change 17
17
<a class="ui green button {{if not .PullRequestCtx.Allowed}}disabled{{end}}" href="{{if .PullRequestCtx.Allowed}}{{.PullRequestCtx.BaseRepo.Link}}/compare/{{.PullRequestCtx.BaseRepo.DefaultBranch | EscapePound}}...{{if ne .Repository.Owner.Name .PullRequestCtx.BaseRepo.Owner.Name}}{{.Repository.Owner.Name}}:{{end}}{{.Repository.DefaultBranch | EscapePound}}{{end}}">{{.i18n.Tr "repo.pulls.new"}}</a>
18
18
{{end}}
19
19
</div>
20
+ {{else}}
21
+ {{if not .PageIsIssueList}}
22
+ <div class="column right aligned">
23
+ <a class="ui green button {{if not .PullRequestCtx.Allowed}}disabled{{end}}" href="{{if .PullRequestCtx.Allowed}}{{.PullRequestCtx.BaseRepo.Link}}/compare/{{.PullRequestCtx.BaseRepo.DefaultBranch | EscapePound}}...{{if ne .Repository.Owner.Name .PullRequestCtx.BaseRepo.Owner.Name}}{{.Repository.Owner.Name}}:{{end}}{{.Repository.DefaultBranch | EscapePound}}{{end}}">{{$.i18n.Tr "action.compare_commits_general"}}</a>
24
+ </div>
25
+ {{end}}
20
26
{{end}}
21
27
</div>
22
28
<div class="ui divider"></div>
132
138
this one correctly, but not the other one. */}}
133
139
<div class="nine wide right aligned right floated column">
134
140
<div class="ui secondary filter stackable menu">
141
+ {{if not .Repository.IsArchived}}
135
142
<!-- Action Button -->
136
143
{{if .IsShowClosed}}
137
144
<div class="ui green active basic button issue-action" data-action="open" data-url="{{$.RepoLink}}/issues/status" style="margin-left: auto">{{.i18n.Tr "repo.issues.action_open"}}</div>
188
195
{{end}}
189
196
</div>
190
197
</div>
198
+ {{end}}
191
199
</div>
192
200
</div>
193
201
</div>
Original file line number Diff line number Diff line change 70
70
{{ template "repo/issue/view_content/pull". }}
71
71
{{end}}
72
72
{{if .IsSigned}}
73
- {{ if or .IsRepoAdmin .IsRepoIssuesWriter (or (not .Issue.IsLocked)) }}
73
+ {{ if and ( or .IsRepoAdmin .IsRepoIssuesWriter (or (not .Issue.IsLocked))) (not .Repository.IsArchived ) }}
74
74
<div class="comment form">
75
75
<a class="avatar" href="{{.SignedUser.HomeLink}}">
76
76
<img src="{{.SignedUser.RelAvatarLink}}">
111
111
</div>
112
112
{{else}}
113
113
{{if .IsSigned}}
114
+ {{if .Repository.IsArchived}}
114
115
<div class="comment form">
115
116
<a class="avatar" href="{{.SignedUser.HomeLink}}">
116
117
<img src="{{.SignedUser.RelAvatarLink}}">
139
140
</form>
140
141
</div>
141
142
</div>
143
+ {{end}}
142
144
{{else}}
143
145
<div class="ui warning message">
144
146
{{.i18n.Tr "repo.issues.sign_in_require_desc" .SignInLink | Safe}}
Original file line number Diff line number Diff line change 336
336
{{end}}
337
337
</div>
338
338
339
- {{ if .IsRepoAdmin }}
339
+ {{ if and .IsRepoAdmin (not .Repository.IsArchived) }}
340
340
<div class="ui divider"></div>
341
341
<div class="ui watching">
342
342
<div>
You can’t perform that action at this time.
0 commit comments