2019-06-07 16:29:29 -04:00
|
|
|
{{template "base/head" .}}
|
2023-02-01 17:56:10 -05:00
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository diff {{if .PageIsComparePull}}compare pull{{end}}">
|
2019-06-07 16:29:29 -04:00
|
|
|
{{template "repo/header" .}}
|
2022-10-19 10:48:29 -04:00
|
|
|
<div class="ui container {{if .IsSplitStyle}}fluid padded{{end}}">
|
2019-06-07 16:29:29 -04:00
|
|
|
|
2021-05-07 17:10:05 -04:00
|
|
|
<h2 class="ui header">
|
|
|
|
{{if and $.PageIsComparePull $.IsSigned (not .Repository.IsArchived)}}
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "repo.pulls.compare_changes"}}
|
|
|
|
<div class="sub header">{{.locale.Tr "repo.pulls.compare_changes_desc"}}</div>
|
2022-08-31 11:58:54 -04:00
|
|
|
{{else}}
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "action.compare_commits_general"}}
|
2022-08-31 11:58:54 -04:00
|
|
|
{{end}}
|
2021-05-07 17:10:05 -04:00
|
|
|
</h2>
|
2022-09-02 03:58:49 -04:00
|
|
|
{{if .Flash.WarningMsg}}
|
|
|
|
{{/*
|
Fix various typos (#21103)
Found via `codespell -q 3 -S
./options/locale,./options/license,./public/vendor,./web_src/fomantic -L
actived,allways,attachements,ba,befores,commiter,pullrequest,pullrequests,readby,splitted,te,unknwon`
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2022-09-07 14:40:36 -04:00
|
|
|
There's already an importing of alert.tmpl in new_form.tmpl,
|
2022-09-02 03:58:49 -04:00
|
|
|
but only the negative message will be displayed within forms for some reasons, see semantic.css:10659.
|
|
|
|
To avoid repeated negative messages, the importing here if for .Flash.WarningMsg only.
|
|
|
|
*/}}
|
|
|
|
{{template "base/alert" .}}
|
|
|
|
{{end}}
|
2022-08-31 11:58:54 -04:00
|
|
|
{{$BaseCompareName := $.BaseName -}}
|
2021-05-07 17:10:05 -04:00
|
|
|
{{- $HeadCompareName := $.HeadRepo.OwnerName -}}
|
|
|
|
{{- if and (eq $.BaseName $.HeadRepo.OwnerName) (ne $.Repository.Name $.HeadRepo.Name) -}}
|
|
|
|
{{- $HeadCompareName = printf "%s/%s" $.HeadRepo.OwnerName $.HeadRepo.Name -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- $OwnForkCompareName := "" -}}
|
|
|
|
{{- if .OwnForkRepo -}}
|
|
|
|
{{- $OwnForkCompareName = .OwnForkRepo.OwnerName -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- $RootRepoCompareName := "" -}}
|
|
|
|
{{- if .RootRepo -}}
|
|
|
|
{{- $RootRepoCompareName = .RootRepo.OwnerName -}}
|
|
|
|
{{- if eq $.HeadRepo.OwnerName .RootRepo.OwnerName -}}
|
2021-03-15 21:36:34 -04:00
|
|
|
{{- $HeadCompareName = printf "%s/%s" $.HeadRepo.OwnerName $.HeadRepo.Name -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- if .OwnForkRepo -}}
|
2021-05-07 17:10:05 -04:00
|
|
|
{{- if eq $.OwnForkRepo.OwnerName .RootRepo.OwnerName -}}
|
|
|
|
{{- $OwnForkRepoCompareName = printf "%s/%s" $.OwnForkRepo.OwnerName $.OwnForkRepo.Name -}}
|
2021-03-15 21:36:34 -04:00
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
2021-05-07 17:10:05 -04:00
|
|
|
{{- end -}}
|
|
|
|
<div class="ui segment choose branch">
|
2022-06-27 16:58:46 -04:00
|
|
|
<a href="{{$.HeadRepo.Link}}/compare/{{PathEscapeSegments $.HeadBranch}}{{$.CompareSeparator}}{{if not $.PullRequestCtx.SameRepo}}{{PathEscape $.BaseName}}/{{PathEscape $.Repository.Name}}:{{end}}{{PathEscapeSegments $.BaseBranch}}" title="{{.locale.Tr "repo.pulls.switch_head_and_base"}}">{{svg "octicon-git-compare"}}</a>
|
|
|
|
<div class="ui floating filter dropdown" data-no-results="{{.locale.Tr "repo.pulls.no_results"}}">
|
2021-05-07 17:10:05 -04:00
|
|
|
<div class="ui basic small button">
|
2022-06-27 16:58:46 -04:00
|
|
|
<span class="text">{{if $.PageIsComparePull}}{{.locale.Tr "repo.pulls.compare_base"}}{{else}}{{.locale.Tr "repo.compare.compare_base"}}{{end}}: {{$BaseCompareName}}:{{$.BaseBranch}}</span>
|
2021-05-07 17:10:05 -04:00
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
|
|
|
</div>
|
|
|
|
<div class="menu">
|
|
|
|
<div class="ui icon search input">
|
2023-02-13 12:59:59 -05:00
|
|
|
<i class="icon gt-df gt-ac gt-jc gt-m-0">{{svg "octicon-filter" 16}}</i>
|
2022-06-27 16:58:46 -04:00
|
|
|
<input name="search" placeholder="{{.locale.Tr "repo.filter_branch_and_tag"}}...">
|
2019-06-07 16:29:29 -04:00
|
|
|
</div>
|
2021-05-07 17:10:05 -04:00
|
|
|
<div class="header">
|
|
|
|
<div class="ui grid">
|
|
|
|
<div class="two column row">
|
|
|
|
<a class="reference column" href="#" data-target=".base-branch-list">
|
|
|
|
<span class="text black">
|
2023-02-13 12:59:59 -05:00
|
|
|
{{svg "octicon-git-branch" 16 "gt-mr-2"}}{{.locale.Tr "repo.branches"}}
|
2021-05-07 17:10:05 -04:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
<a class="reference column" href="#" data-target=".base-tag-list">
|
|
|
|
<span class="text black">
|
2023-02-13 12:59:59 -05:00
|
|
|
{{svg "octicon-tag" 16 "gt-mr-2"}}{{.locale.Tr "repo.tags"}}
|
2021-05-07 17:10:05 -04:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
2019-06-07 16:29:29 -04:00
|
|
|
</div>
|
2021-05-07 17:10:05 -04:00
|
|
|
</div>
|
|
|
|
<div class="scrolling menu reference-list-menu base-branch-list">
|
|
|
|
{{range .Branches}}
|
2021-11-16 13:18:25 -05:00
|
|
|
<div class="item {{if eq $.BaseBranch .}}selected{{end}}" data-url="{{$.RepoLink}}/compare/{{PathEscapeSegments .}}{{$.CompareSeparator}}{{if not $.PullRequestCtx.SameRepo}}{{PathEscape $.HeadUser.Name}}/{{PathEscape $.HeadRepo.Name}}:{{end}}{{PathEscapeSegments $.HeadBranch}}">{{$BaseCompareName}}:{{.}}</div>
|
2021-05-07 17:10:05 -04:00
|
|
|
{{end}}
|
|
|
|
{{if not .PullRequestCtx.SameRepo}}
|
|
|
|
{{range .HeadBranches}}
|
2021-11-16 13:18:25 -05:00
|
|
|
<div class="item" data-url="{{$.HeadRepo.Link}}/compare/{{PathEscapeSegments .}}{{$.CompareSeparator}}{{PathEscape $.HeadUser.Name}}/{{PathEscape $.HeadRepo.Name}}:{{PathEscapeSegments $.HeadBranch}}">{{$HeadCompareName}}:{{.}}</div>
|
2019-06-07 16:29:29 -04:00
|
|
|
{{end}}
|
2021-05-07 17:10:05 -04:00
|
|
|
{{end}}
|
|
|
|
{{if .OwnForkRepo}}
|
|
|
|
{{range .OwnForkRepoBranches}}
|
2021-11-16 13:18:25 -05:00
|
|
|
<div class="item" data-url="{{$.OwnForkRepo.Link}}/compare/{{PathEscapeSegments .}}{{$.CompareSeparator}}{{PathEscape $.HeadUser.Name}}/{{PathEscape $.HeadRepo.Name}}:{{PathEscapeSegments $.HeadBranch}}">{{$OwnForkCompareName}}:{{.}}</div>
|
2020-05-12 01:52:46 -04:00
|
|
|
{{end}}
|
2021-05-07 17:10:05 -04:00
|
|
|
{{end}}
|
|
|
|
{{if .RootRepo}}
|
|
|
|
{{range .RootRepoBranches}}
|
2021-11-16 13:18:25 -05:00
|
|
|
<div class="item" data-url="{{$.RootRepo.Link}}/compare/{{PathEscapeSegments .}}{{$.CompareSeparator}}{{PathEscape $.HeadUser.Name}}/{{PathEscape $.HeadRepo.Name}}:{{PathEscapeSegments $.HeadBranch}}">{{$RootRepoCompareName}}:{{.}}</div>
|
2020-05-12 01:52:46 -04:00
|
|
|
{{end}}
|
2021-05-07 17:10:05 -04:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
<div class="scrolling menu reference-list-menu base-tag-list" style="display: none">
|
|
|
|
{{range .Tags}}
|
2021-11-16 13:18:25 -05:00
|
|
|
<div class="item {{if eq $.BaseBranch .}}selected{{end}}" data-url="{{$.RepoLink}}/compare/{{PathEscapeSegments .}}{{$.CompareSeparator}}{{if not $.PullRequestCtx.SameRepo}}{{PathEscape $.HeadUser.Name}}/{{PathEscape $.HeadRepo.Name}}:{{end}}{{PathEscapeSegments $.HeadBranch}}">{{$BaseCompareName}}:{{.}}</div>
|
2021-05-07 17:10:05 -04:00
|
|
|
{{end}}
|
|
|
|
{{if not .PullRequestCtx.SameRepo}}
|
|
|
|
{{range .HeadTags}}
|
2021-11-16 13:18:25 -05:00
|
|
|
<div class="item" data-url="{{$.HeadRepo.Link}}/compare/{{PathEscapeSegments .}}{{$.CompareSeparator}}{{PathEscape $.HeadUser.Name}}/{{PathEscape $.HeadRepo.Name}}:{{PathEscapeSegments $.HeadBranch}}">{{$HeadCompareName}}:{{.}}</div>
|
2019-10-30 01:58:18 -04:00
|
|
|
{{end}}
|
2021-05-07 17:10:05 -04:00
|
|
|
{{end}}
|
|
|
|
{{if .OwnForkRepo}}
|
|
|
|
{{range .OwnForkRepoTags}}
|
2021-11-16 13:18:25 -05:00
|
|
|
<div class="item" data-url="{{$.OwnForkRepo.Link}}/compare/{{PathEscapeSegments .}}{{$.CompareSeparator}}{{PathEscape $.HeadUser.Name}}/{{PathEscape $.HeadRepo.Name}}:{{PathEscapeSegments $.HeadBranch}}">{{$OwnForkCompareName}}:{{.}}</div>
|
2021-05-07 17:10:05 -04:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{if .RootRepo}}
|
|
|
|
{{range .RootRepoTags}}
|
2021-11-16 13:18:25 -05:00
|
|
|
<div class="item" data-url="{{$.RootRepo.Link}}/compare/{{PathEscapeSegments .}}{{$.CompareSeparator}}{{PathEscape $.HeadUser.Name}}/{{PathEscape $.HeadRepo.Name}}:{{PathEscapeSegments $.HeadBranch}}">{{$RootRepoCompareName}}:{{.}}</div>
|
2021-05-07 17:10:05 -04:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2019-06-07 16:29:29 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-07 17:10:05 -04:00
|
|
|
</div>
|
2022-06-27 16:58:46 -04:00
|
|
|
<a href="{{.RepoLink}}/compare/{{PathEscapeSegments .BaseBranch}}{{.OtherCompareSeparator}}{{if not $.PullRequestCtx.SameRepo}}{{PathEscape $.HeadUser.Name}}/{{PathEscape $.HeadRepo.Name}}:{{end}}{{PathEscapeSegments $.HeadBranch}}" title="{{.locale.Tr "repo.pulls.switch_comparison_type"}}">{{.CompareSeparator}}</a>
|
2021-05-07 17:10:05 -04:00
|
|
|
<div class="ui floating filter dropdown">
|
|
|
|
<div class="ui basic small button">
|
2022-06-27 16:58:46 -04:00
|
|
|
<span class="text">{{if $.PageIsComparePull}}{{.locale.Tr "repo.pulls.compare_compare"}}{{else}}{{.locale.Tr "repo.compare.compare_head"}}{{end}}: {{$HeadCompareName}}:{{$.HeadBranch}}</span>
|
2021-05-07 17:10:05 -04:00
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
|
|
|
</div>
|
|
|
|
<div class="menu">
|
|
|
|
<div class="ui icon search input">
|
2023-02-13 12:59:59 -05:00
|
|
|
<i class="icon gt-df gt-ac gt-jc gt-m-0">{{svg "octicon-filter" 16}}</i>
|
2022-06-27 16:58:46 -04:00
|
|
|
<input name="search" placeholder="{{.locale.Tr "repo.filter_branch_and_tag"}}...">
|
2019-06-07 16:29:29 -04:00
|
|
|
</div>
|
2021-05-07 17:10:05 -04:00
|
|
|
<div class="header">
|
|
|
|
<div class="ui grid">
|
|
|
|
<div class="two column row">
|
|
|
|
<a class="reference column" href="#" data-target=".head-branch-list">
|
|
|
|
<span class="text black">
|
2023-02-13 12:59:59 -05:00
|
|
|
{{svg "octicon-git-branch" 16 "gt-mr-2"}}{{.locale.Tr "repo.branches"}}
|
2021-05-07 17:10:05 -04:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
<a class="reference column" href="#" data-target=".head-tag-list">
|
|
|
|
<span class="text black">
|
2023-02-13 12:59:59 -05:00
|
|
|
{{svg "octicon-tag" 16 "gt-mr-2"}}{{.locale.Tr "repo.tags"}}
|
2021-05-07 17:10:05 -04:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
2019-06-07 16:29:29 -04:00
|
|
|
</div>
|
2021-05-07 17:10:05 -04:00
|
|
|
</div>
|
|
|
|
<div class="scrolling menu reference-list-menu head-branch-list">
|
|
|
|
{{range .HeadBranches}}
|
2021-11-16 13:18:25 -05:00
|
|
|
<div class="{{if eq $.HeadBranch .}}selected{{end}} item" data-url="{{$.RepoLink}}/compare/{{PathEscapeSegments $.BaseBranch}}{{$.CompareSeparator}}{{if not $.PullRequestCtx.SameRepo}}{{PathEscape $.HeadUser.Name}}/{{PathEscape $.HeadRepo.Name}}:{{end}}{{PathEscapeSegments .}}">{{$HeadCompareName}}:{{.}}</div>
|
2021-05-07 17:10:05 -04:00
|
|
|
{{end}}
|
|
|
|
{{if not .PullRequestCtx.SameRepo}}
|
|
|
|
{{range .Branches}}
|
2021-11-16 13:18:25 -05:00
|
|
|
<div class="item" data-url="{{$.RepoLink}}/compare/{{PathEscapeSegments $.BaseBranch}}{{$.CompareSeparator}}{{PathEscape $.BaseName}}/{{PathEscape $.Repository.Name}}:{{PathEscapeSegments .}}">{{$BaseCompareName}}:{{.}}</div>
|
2020-05-12 01:52:46 -04:00
|
|
|
{{end}}
|
2021-05-07 17:10:05 -04:00
|
|
|
{{end}}
|
|
|
|
{{if .OwnForkRepo}}
|
|
|
|
{{range .OwnForkRepoBranches}}
|
2021-11-16 13:18:25 -05:00
|
|
|
<div class="item" data-url="{{$.RepoLink}}/compare/{{PathEscapeSegments $.BaseBranch}}{{$.CompareSeparator}}{{PathEscape $.OwnForkRepo.OwnerName}}/{{PathEscape $.OwnForkRepo.Name}}:{{PathEscapeSegments .}}">{{$OwnForkCompareName}}:{{.}}</div>
|
2020-05-12 01:52:46 -04:00
|
|
|
{{end}}
|
2021-05-07 17:10:05 -04:00
|
|
|
{{end}}
|
|
|
|
{{if .RootRepo}}
|
|
|
|
{{range .RootRepoBranches}}
|
2021-11-16 13:18:25 -05:00
|
|
|
<div class="item" data-url="{{$.RepoLink}}/compare/{{PathEscapeSegments $.BaseBranch}}{{$.CompareSeparator}}{{PathEscape $.RootRepo.OwnerName}}/{{PathEscape $.RootRepo.Name}}:{{PathEscapeSegments .}}">{{$RootRepoCompareName}}:{{.}}</div>
|
2020-05-12 01:52:46 -04:00
|
|
|
{{end}}
|
2021-05-07 17:10:05 -04:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
<div class="scrolling menu reference-list-menu head-tag-list" style="display: none">
|
|
|
|
{{range .HeadTags}}
|
2021-11-16 13:18:25 -05:00
|
|
|
<div class="{{if eq $.HeadBranch .}}selected{{end}} item" data-url="{{$.RepoLink}}/compare/{{PathEscapeSegments $.BaseBranch}}{{$.CompareSeparator}}{{if not $.PullRequestCtx.SameRepo}}{{PathEscape $.HeadUser.Name}}/{{PathEscape $.HeadRepo.Name}}:{{end}}{{PathEscapeSegments .}}">{{$HeadCompareName}}:{{.}}</div>
|
2021-05-07 17:10:05 -04:00
|
|
|
{{end}}
|
|
|
|
{{if not .PullRequestCtx.SameRepo}}
|
|
|
|
{{range .Tags}}
|
2021-11-16 13:18:25 -05:00
|
|
|
<div class="item" data-url="{{$.RepoLink}}/compare/{{PathEscapeSegments $.BaseBranch}}{{$.CompareSeparator}}{{PathEscape $.BaseName}}/{{PathEscape $.Repository.Name}}:{{PathEscapeSegments .}}">{{$BaseCompareName}}:{{.}}</div>
|
2019-06-07 16:29:29 -04:00
|
|
|
{{end}}
|
2021-05-07 17:10:05 -04:00
|
|
|
{{end}}
|
|
|
|
{{if .OwnForkRepo}}
|
|
|
|
{{range .OwnForkRepoTags}}
|
2021-11-16 13:18:25 -05:00
|
|
|
<div class="item" data-url="{{$.RepoLink}}/compare/{{PathEscapeSegments $.BaseBranch}}{{$.CompareSeparator}}{{PathEscape $.OwnForkRepo.OwnerName}}/{{PathEscape $.OwnForkRepo.Name}}:{{PathEscapeSegments .}}">{{$OwnForkCompareName}}:{{.}}</div>
|
2021-05-07 17:10:05 -04:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{if .RootRepo}}
|
|
|
|
{{range .RootRepoTags}}
|
2021-11-16 13:18:25 -05:00
|
|
|
<div class="item" data-url="{{$.RepoLink}}/compare/{{PathEscapeSegments $.BaseBranch}}{{$.CompareSeparator}}{{PathEscape $.RootRepo.OwnerName}}/{{PathEscape $.RootRepo.Name}}:{{PathEscapeSegments .}}">{{$RootRepoCompareName}}:{{.}}</div>
|
2021-05-07 17:10:05 -04:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2019-06-07 16:29:29 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-07 17:10:05 -04:00
|
|
|
</div>
|
2019-06-07 16:29:29 -04:00
|
|
|
|
|
|
|
{{if .IsNothingToCompare}}
|
2022-08-31 11:58:54 -04:00
|
|
|
{{if and $.IsSigned $.AllowEmptyPr (not .Repository.IsArchived)}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<div class="ui segment">{{.locale.Tr "repo.pulls.nothing_to_compare_and_allow_empty_pr"}}</div>
|
2021-07-24 22:59:27 -04:00
|
|
|
<div class="ui info message show-form-container" {{if .Flash}}style="display: none"{{end}}>
|
2022-06-27 16:58:46 -04:00
|
|
|
<button class="ui button green show-form">{{.locale.Tr "repo.pulls.new"}}</button>
|
2021-03-03 22:41:23 -05:00
|
|
|
</div>
|
2021-07-24 22:59:27 -04:00
|
|
|
<div class="pullrequest-form" {{if not .Flash}}style="display: none"{{end}}>
|
2021-03-03 22:41:23 -05:00
|
|
|
{{template "repo/issue/new_form" .}}
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<div class="ui segment">{{.locale.Tr "repo.pulls.nothing_to_compare"}}</div>
|
2021-03-03 22:41:23 -05:00
|
|
|
{{end}}
|
2020-05-02 04:06:01 -04:00
|
|
|
{{else if and .PageIsComparePull (gt .CommitCount 0)}}
|
2019-06-07 16:29:29 -04:00
|
|
|
{{if .HasPullRequest}}
|
2021-12-24 07:14:42 -05:00
|
|
|
<div class="ui segment grid title">
|
|
|
|
<div class="twelve wide column issue-title">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "repo.pulls.has_pull_request" (Escape $.RepoLink) (Escape $.RepoRelPath) .PullRequest.Index | Safe}}
|
2021-12-24 07:14:42 -05:00
|
|
|
<h1>
|
2022-04-25 23:14:01 -04:00
|
|
|
<span id="issue-title">{{RenderIssueTitle $.Context .PullRequest.Issue.Title $.RepoLink $.Repository.ComposeMetas}}</span>
|
2021-12-24 07:14:42 -05:00
|
|
|
<span class="index">#{{.PullRequest.Issue.Index}}</span>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
<div class="four wide right middle aligned column">
|
|
|
|
{{- if .PullRequest.HasMerged -}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<a href="{{Escape $.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button purple show-form">{{svg "octicon-git-merge" 16}} {{.locale.Tr "repo.pulls.view"}}</a>
|
2021-12-24 07:14:42 -05:00
|
|
|
{{else if .Issue.IsClosed}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<a href="{{Escape $.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button red show-form">{{svg "octicon-issue-closed" 16}} {{.locale.Tr "repo.pulls.view"}}</a>
|
2021-12-24 07:14:42 -05:00
|
|
|
{{else}}
|
2022-06-27 16:58:46 -04:00
|
|
|
<a href="{{Escape $.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui button green show-form">{{svg "octicon-git-pull-request" 16}} {{.locale.Tr "repo.pulls.view"}}</a>
|
2021-12-24 07:14:42 -05:00
|
|
|
{{end}}</div>
|
2021-04-10 23:46:37 -04:00
|
|
|
</div>
|
2020-05-04 18:44:30 -04:00
|
|
|
{{else}}
|
|
|
|
{{if and $.IsSigned (not .Repository.IsArchived)}}
|
2021-07-24 22:59:27 -04:00
|
|
|
<div class="ui info message show-form-container" {{if .Flash}}style="display: none"{{end}}>
|
2022-06-27 16:58:46 -04:00
|
|
|
<button class="ui button green show-form">{{.locale.Tr "repo.pulls.new"}}</button>
|
2020-05-04 18:44:30 -04:00
|
|
|
</div>
|
|
|
|
{{else if .Repository.IsArchived}}
|
|
|
|
<div class="ui warning message">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "repo.archive.title"}}
|
2020-05-04 18:44:30 -04:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{if $.IsSigned}}
|
2021-07-24 22:59:27 -04:00
|
|
|
<div class="pullrequest-form" {{if not .Flash}}style="display: none"{{end}}>
|
2020-05-04 18:44:30 -04:00
|
|
|
{{template "repo/issue/new_form" .}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{template "repo/commits_table" .}}
|
|
|
|
{{template "repo/diff/box" .}}
|
|
|
|
{{end}}
|
2019-06-07 16:29:29 -04:00
|
|
|
{{else}}
|
|
|
|
{{template "repo/commits_table" .}}
|
|
|
|
{{template "repo/diff/box" .}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|