2019-06-08 01:59:29 +05:30
{{ template "base/head" . }}
2023-02-02 04:26:10 +05:30
< div role = "main" aria-label = " {{ .Title }} " class = "page-content repository diff {{ if .PageIsComparePull }} compare pull {{ end }} " >
2019-06-08 01:59:29 +05:30
{{ template "repo/header" . }}
2023-05-09 10:51:03 +05:30
{{ $showDiffBox := false }}
2023-11-23 21:22:57 +05:30
< div class = "ui container fluid padded" >
2021-05-08 02:40:05 +05:30
< h2 class = "ui header" >
{{ if and $.PageIsComparePull $.IsSigned ( not .Repository.IsArchived ) }}
2023-09-25 14:26:50 +05:30
{{ ctx .Locale.Tr "repo.pulls.compare_changes" }}
< div class = "sub header" > {{ ctx .Locale.Tr "repo.pulls.compare_changes_desc" }} </ div >
2022-08-31 21:28:54 +05:30
{{ else }}
2023-09-25 14:26:50 +05:30
{{ ctx .Locale.Tr "action.compare_commits_general" }}
2022-08-31 21:28:54 +05:30
{{ end }}
2021-05-08 02:40:05 +05:30
< / h2 >
2022-08-31 21:28:54 +05:30
{{ $BaseCompareName := $.BaseName -}}
2021-05-08 02:40:05 +05:30
{{- $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-16 07:06:34 +05:30
{{- $HeadCompareName = printf "%s/%s" $.HeadRepo.OwnerName $.HeadRepo.Name -}}
{{- end -}}
2021-05-08 02:40:05 +05:30
{{- end -}}
< div class = "ui segment choose branch" >
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 22:12:49 +05:30
< a class = "tw-mr-2" href = " {{ $.HeadRepo.Link }} /compare/ {{ PathEscapeSegments $.HeadBranch }}{{ $.CompareSeparator }}{{ if not $.PullRequestCtx.SameRepo }}{{ PathEscape $.BaseName }} / {{ PathEscape $.Repository.Name }} : {{ end }}{{ PathEscapeSegments $.BaseBranch }} " title = " {{ ctx .Locale.Tr "repo.pulls.switch_head_and_base" }} " > {{ svg "octicon-git-compare" }} </ a >
2023-09-25 14:26:50 +05:30
< div class = "ui floating filter dropdown" data-no-results = " {{ ctx .Locale.Tr "repo.pulls.no_results" }} " >
2021-05-08 02:40:05 +05:30
< div class = "ui basic small button" >
2023-09-25 18:12:40 +05:30
< span class = "text" > {{ if $.PageIsComparePull }}{{ ctx .Locale.Tr "repo.pulls.compare_base" }}{{ else }}{{ ctx .Locale.Tr "repo.compare.compare_base" }}{{ end }} : {{ $BaseCompareName }} :{{ $.BaseBranch }} </ span >
2021-05-08 02:40:05 +05:30
{{ svg "octicon-triangle-down" 14 "dropdown icon" }}
< / div >
< div class = "menu" >
< div class = "ui icon search input" >
2023-06-14 22:10:15 +05:30
< i class = "icon" > {{ svg "octicon-filter" 16 }} </ i >
2023-09-25 14:26:50 +05:30
< input name = "search" placeholder = " {{ ctx .Locale.Tr "repo.filter_branch_and_tag" }} ..." >
2019-06-08 01:59:29 +05:30
< / div >
2021-05-08 02:40:05 +05:30
< 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" >
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 22:12:49 +05:30
{{ svg "octicon-git-branch" 16 "tw-mr-1" }}{{ ctx .Locale.Tr "repo.branches" }}
2021-05-08 02:40:05 +05:30
< / span >
< / a >
< a class = "reference column" href = "#" data-target = ".base-tag-list" >
< span class = "text black" >
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 22:12:49 +05:30
{{ svg "octicon-tag" 16 "tw-mr-1" }}{{ ctx .Locale.Tr "repo.tags" }}
2021-05-08 02:40:05 +05:30
< / span >
< / a >
< / div >
2019-06-08 01:59:29 +05:30
< / div >
2021-05-08 02:40:05 +05:30
< / div >
< div class = "scrolling menu reference-list-menu base-branch-list" >
{{ range .Branches }}
2021-11-16 23:48:25 +05:30
< 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-08 02:40:05 +05:30
{{ end }}
2024-01-21 17:52:07 +05:30
{{ if and ( not .PullRequestCtx.SameRepo ) ( $.HeadRepo.AllowsPulls ctx ) }}
2021-05-08 02:40:05 +05:30
{{ range .HeadBranches }}
2021-11-16 23:48:25 +05:30
< div class = "item" data-url = " {{ $.HeadRepo.Link }} /compare/ {{ PathEscapeSegments . }}{{ $.CompareSeparator }}{{ PathEscape $.HeadUser.Name }} / {{ PathEscape $.HeadRepo.Name }} : {{ PathEscapeSegments $.HeadBranch }} " > {{ $HeadCompareName }} :{{ . }} </ div >
2019-06-08 01:59:29 +05:30
{{ end }}
2021-05-08 02:40:05 +05:30
{{ end }}
2024-01-21 17:52:07 +05:30
{{ if and .OwnForkRepo ( .OwnForkRepo.AllowsPulls ctx ) }}
2021-05-08 02:40:05 +05:30
{{ range .OwnForkRepoBranches }}
2021-11-16 23:48:25 +05:30
< div class = "item" data-url = " {{ $.OwnForkRepo.Link }} /compare/ {{ PathEscapeSegments . }}{{ $.CompareSeparator }}{{ PathEscape $.HeadUser.Name }} / {{ PathEscape $.HeadRepo.Name }} : {{ PathEscapeSegments $.HeadBranch }} " > {{ $OwnForkCompareName }} :{{ . }} </ div >
2020-05-12 11:22:46 +05:30
{{ end }}
2021-05-08 02:40:05 +05:30
{{ end }}
2023-10-11 09:54:07 +05:30
{{ if and .RootRepo ( .RootRepo.AllowsPulls ctx ) }}
2021-05-08 02:40:05 +05:30
{{ range .RootRepoBranches }}
2021-11-16 23:48:25 +05:30
< div class = "item" data-url = " {{ $.RootRepo.Link }} /compare/ {{ PathEscapeSegments . }}{{ $.CompareSeparator }}{{ PathEscape $.HeadUser.Name }} / {{ PathEscape $.HeadRepo.Name }} : {{ PathEscapeSegments $.HeadBranch }} " > {{ $RootRepoCompareName }} :{{ . }} </ div >
2020-05-12 11:22:46 +05:30
{{ end }}
2021-05-08 02:40:05 +05:30
{{ end }}
< / div >
2024-03-24 23:53:38 +05:30
< div class = "scrolling menu reference-list-menu base-tag-list tw-hidden" >
2021-05-08 02:40:05 +05:30
{{ range .Tags }}
2021-11-16 23:48:25 +05:30
< 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-08 02:40:05 +05:30
{{ end }}
2024-01-21 17:52:07 +05:30
{{ if and ( not .PullRequestCtx.SameRepo ) ( $.HeadRepo.AllowsPulls ctx ) }}
2021-05-08 02:40:05 +05:30
{{ range .HeadTags }}
2021-11-16 23:48:25 +05:30
< div class = "item" data-url = " {{ $.HeadRepo.Link }} /compare/ {{ PathEscapeSegments . }}{{ $.CompareSeparator }}{{ PathEscape $.HeadUser.Name }} / {{ PathEscape $.HeadRepo.Name }} : {{ PathEscapeSegments $.HeadBranch }} " > {{ $HeadCompareName }} :{{ . }} </ div >
2019-10-30 11:28:18 +05:30
{{ end }}
2021-05-08 02:40:05 +05:30
{{ end }}
2024-01-21 17:52:07 +05:30
{{ if and .OwnForkRepo ( .OwnForkRepo.AllowsPulls ctx ) }}
2021-05-08 02:40:05 +05:30
{{ range .OwnForkRepoTags }}
2021-11-16 23:48:25 +05:30
< div class = "item" data-url = " {{ $.OwnForkRepo.Link }} /compare/ {{ PathEscapeSegments . }}{{ $.CompareSeparator }}{{ PathEscape $.HeadUser.Name }} / {{ PathEscape $.HeadRepo.Name }} : {{ PathEscapeSegments $.HeadBranch }} " > {{ $OwnForkCompareName }} :{{ . }} </ div >
2021-05-08 02:40:05 +05:30
{{ end }}
{{ end }}
2024-01-21 17:52:07 +05:30
{{ if and .RootRepo ( .RootRepo.AllowsPulls ctx ) }}
2021-05-08 02:40:05 +05:30
{{ range .RootRepoTags }}
2021-11-16 23:48:25 +05:30
< div class = "item" data-url = " {{ $.RootRepo.Link }} /compare/ {{ PathEscapeSegments . }}{{ $.CompareSeparator }}{{ PathEscape $.HeadUser.Name }} / {{ PathEscape $.HeadRepo.Name }} : {{ PathEscapeSegments $.HeadBranch }} " > {{ $RootRepoCompareName }} :{{ . }} </ div >
2021-05-08 02:40:05 +05:30
{{ end }}
{{ end }}
2019-06-08 01:59:29 +05:30
< / div >
< / div >
2021-05-08 02:40:05 +05:30
< / div >
2024-01-05 23:08:56 +05:30
< a href = " {{ .RepoLink }} /compare/ {{ PathEscapeSegments .BaseBranch }}{{ .OtherCompareSeparator }}{{ if not $.PullRequestCtx.SameRepo }}{{ PathEscape $.HeadUser.Name }} / {{ PathEscape $.HeadRepo.Name }} : {{ end }}{{ PathEscapeSegments $.HeadBranch }} " title = " {{ ctx .Locale.Tr "repo.pulls.switch_comparison_type" }} " > {{ svg "octicon-arrow-left" 16 }} < div class = "compare-separator" > {{ .CompareSeparator }} </ div ></ a >
2021-05-08 02:40:05 +05:30
< div class = "ui floating filter dropdown" >
< div class = "ui basic small button" >
2023-09-25 18:12:40 +05:30
< span class = "text" > {{ if $.PageIsComparePull }}{{ ctx .Locale.Tr "repo.pulls.compare_compare" }}{{ else }}{{ ctx .Locale.Tr "repo.compare.compare_head" }}{{ end }} : {{ $HeadCompareName }} :{{ $.HeadBranch }} </ span >
2021-05-08 02:40:05 +05:30
{{ svg "octicon-triangle-down" 14 "dropdown icon" }}
< / div >
< div class = "menu" >
< div class = "ui icon search input" >
2023-06-14 22:10:15 +05:30
< i class = "icon" > {{ svg "octicon-filter" 16 }} </ i >
2023-09-25 14:26:50 +05:30
< input name = "search" placeholder = " {{ ctx .Locale.Tr "repo.filter_branch_and_tag" }} ..." >
2019-06-08 01:59:29 +05:30
< / div >
2021-05-08 02:40:05 +05:30
< 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" >
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 22:12:49 +05:30
{{ svg "octicon-git-branch" 16 "tw-mr-1" }}{{ ctx .Locale.Tr "repo.branches" }}
2021-05-08 02:40:05 +05:30
< / span >
< / a >
< a class = "reference column" href = "#" data-target = ".head-tag-list" >
< span class = "text black" >
Migrate margin and padding helpers to tailwind (#30043)
This will conclude the refactor of 1:1 class replacements to tailwind,
except `gt-hidden`. Commands ran:
```bash
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-0#tw-$1$2-0#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-1#tw-$1$2-0.5#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-2#tw-$1$2-1#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-3#tw-$1$2-2#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-4#tw-$1$2-4#g' {web_src/js,templates,routers,services}/**/*
perl -p -i -e 's#gt-(p|m)([lrtbxy])?-5#tw-$1$2-8#g' {web_src/js,templates,routers,services}/**/*
```
(cherry picked from commit 68ec9b48592fe88765bcc3a73093d43c98b315de)
Conflicts:
routers/web/repo/view.go
templates/base/head_navbar.tmpl
templates/repo/code/recently_pushed_new_branches.tmpl
templates/repo/diff/box.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/conversation.tmpl
templates/repo/header.tmpl
templates/repo/issue/filter_list.tmpl
templates/repo/issue/view_content/conversation.tmpl
templates/repo/issue/view_content/sidebar.tmpl
templates/repo/settings/options.tmpl
templates/repo/view_file.tmpl
templates/shared/user/blocked_users.tmpl
templates/status/500.tmpl
web_src/js/components/DashboardRepoList.vue
resolved by prefering Forgejo version and applying the
commands to all files
2024-03-24 22:12:49 +05:30
{{ svg "octicon-tag" 16 "tw-mr-1" }}{{ ctx .Locale.Tr "repo.tags" }}
2021-05-08 02:40:05 +05:30
< / span >
< / a >
< / div >
2019-06-08 01:59:29 +05:30
< / div >
2021-05-08 02:40:05 +05:30
< / div >
< div class = "scrolling menu reference-list-menu head-branch-list" >
{{ range .HeadBranches }}
2021-11-16 23:48:25 +05:30
< 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-08 02:40:05 +05:30
{{ end }}
{{ if not .PullRequestCtx.SameRepo }}
{{ range .Branches }}
2021-11-16 23:48:25 +05:30
< div class = "item" data-url = " {{ $.RepoLink }} /compare/ {{ PathEscapeSegments $.BaseBranch }}{{ $.CompareSeparator }}{{ PathEscape $.BaseName }} / {{ PathEscape $.Repository.Name }} : {{ PathEscapeSegments . }} " > {{ $BaseCompareName }} :{{ . }} </ div >
2020-05-12 11:22:46 +05:30
{{ end }}
2021-05-08 02:40:05 +05:30
{{ end }}
{{ if .OwnForkRepo }}
{{ range .OwnForkRepoBranches }}
2021-11-16 23:48:25 +05:30
< div class = "item" data-url = " {{ $.RepoLink }} /compare/ {{ PathEscapeSegments $.BaseBranch }}{{ $.CompareSeparator }}{{ PathEscape $.OwnForkRepo.OwnerName }} / {{ PathEscape $.OwnForkRepo.Name }} : {{ PathEscapeSegments . }} " > {{ $OwnForkCompareName }} :{{ . }} </ div >
2020-05-12 11:22:46 +05:30
{{ end }}
2021-05-08 02:40:05 +05:30
{{ end }}
{{ if .RootRepo }}
{{ range .RootRepoBranches }}
2021-11-16 23:48:25 +05:30
< div class = "item" data-url = " {{ $.RepoLink }} /compare/ {{ PathEscapeSegments $.BaseBranch }}{{ $.CompareSeparator }}{{ PathEscape $.RootRepo.OwnerName }} / {{ PathEscape $.RootRepo.Name }} : {{ PathEscapeSegments . }} " > {{ $RootRepoCompareName }} :{{ . }} </ div >
2020-05-12 11:22:46 +05:30
{{ end }}
2021-05-08 02:40:05 +05:30
{{ end }}
< / div >
2024-03-24 23:53:38 +05:30
< div class = "scrolling menu reference-list-menu head-tag-list tw-hidden" >
2021-05-08 02:40:05 +05:30
{{ range .HeadTags }}
2021-11-16 23:48:25 +05:30
< 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-08 02:40:05 +05:30
{{ end }}
{{ if not .PullRequestCtx.SameRepo }}
{{ range .Tags }}
2021-11-16 23:48:25 +05:30
< div class = "item" data-url = " {{ $.RepoLink }} /compare/ {{ PathEscapeSegments $.BaseBranch }}{{ $.CompareSeparator }}{{ PathEscape $.BaseName }} / {{ PathEscape $.Repository.Name }} : {{ PathEscapeSegments . }} " > {{ $BaseCompareName }} :{{ . }} </ div >
2019-06-08 01:59:29 +05:30
{{ end }}
2021-05-08 02:40:05 +05:30
{{ end }}
{{ if .OwnForkRepo }}
{{ range .OwnForkRepoTags }}
2021-11-16 23:48:25 +05:30
< div class = "item" data-url = " {{ $.RepoLink }} /compare/ {{ PathEscapeSegments $.BaseBranch }}{{ $.CompareSeparator }}{{ PathEscape $.OwnForkRepo.OwnerName }} / {{ PathEscape $.OwnForkRepo.Name }} : {{ PathEscapeSegments . }} " > {{ $OwnForkCompareName }} :{{ . }} </ div >
2021-05-08 02:40:05 +05:30
{{ end }}
{{ end }}
{{ if .RootRepo }}
{{ range .RootRepoTags }}
2021-11-16 23:48:25 +05:30
< div class = "item" data-url = " {{ $.RepoLink }} /compare/ {{ PathEscapeSegments $.BaseBranch }}{{ $.CompareSeparator }}{{ PathEscape $.RootRepo.OwnerName }} / {{ PathEscape $.RootRepo.Name }} : {{ PathEscapeSegments . }} " > {{ $RootRepoCompareName }} :{{ . }} </ div >
2021-05-08 02:40:05 +05:30
{{ end }}
{{ end }}
2019-06-08 01:59:29 +05:30
< / div >
< / div >
< / div >
2021-05-08 02:40:05 +05:30
< / div >
2019-06-08 01:59:29 +05:30
{{ if .IsNothingToCompare }}
2024-01-21 20:43:00 +05:30
{{ if and $.IsSigned $.AllowEmptyPr ( not .Repository.IsArchived ) .PageIsComparePull }}
2023-09-25 14:26:50 +05:30
< div class = "ui segment" > {{ ctx .Locale.Tr "repo.pulls.nothing_to_compare_and_allow_empty_pr" }} </ div >
2024-03-24 23:53:38 +05:30
< div class = "ui info message show-form-container {{ if .Flash }} tw-hidden {{ end }} " >
2023-09-25 14:26:50 +05:30
< button class = "ui button primary show-form" > {{ ctx .Locale.Tr "repo.pulls.new" }} </ button >
2021-03-04 09:11:23 +05:30
< / div >
2024-03-24 23:53:38 +05:30
< div class = "pullrequest-form {{ if not .Flash }} tw-hidden {{ end }} " >
2021-03-04 09:11:23 +05:30
{{ template "repo/issue/new_form" . }}
< / div >
2024-01-21 20:43:00 +05:30
{{ else if and .HeadIsBranch .BaseIsBranch }}
2023-09-25 14:26:50 +05:30
< div class = "ui segment" > {{ ctx .Locale.Tr "repo.pulls.nothing_to_compare" }} </ div >
2024-01-21 20:43:00 +05:30
{{ else }}
< div class = "ui segment" > {{ ctx .Locale.Tr "repo.pulls.nothing_to_compare_have_tag" }} </ div >
2021-03-04 09:11:23 +05:30
{{ end }}
2020-05-02 13:36:01 +05:30
{{ else if and .PageIsComparePull ( gt .CommitCount 0 ) }}
2019-06-08 01:59:29 +05:30
{{ if .HasPullRequest }}
2021-12-24 17:44:42 +05:30
< div class = "ui segment grid title" >
< div class = "twelve wide column issue-title" >
2024-02-25 19:32:20 +05:30
{{ ctx .Locale.Tr "repo.pulls.has_pull_request" ( print $.RepoLink "/pulls/" .PullRequest.Issue.Index ) $.RepoRelPath .PullRequest.Index }}
2021-12-24 17:44:42 +05:30
< h1 >
2024-01-15 14:19:24 +05:30
< span id = "issue-title" > {{ RenderIssueTitle $.Context .PullRequest.Issue.Title ( $.Repository.ComposeMetas ctx ) }} </ span >
2021-12-24 17:44:42 +05:30
< span class = "index" > #{{ .PullRequest.Issue.Index }} </ span >
< / h1 >
< / div >
2023-05-09 10:51:03 +05:30
< div class = "four wide column middle aligned text right" >
2021-12-24 17:44:42 +05:30
{{- if .PullRequest.HasMerged -}}
2024-02-25 19:32:20 +05:30
< a href = " {{ $.RepoLink }} /pulls/ {{ .PullRequest.Issue.Index }} " class = "ui button purple show-form" > {{ svg "octicon-git-merge" 16 }} {{ ctx .Locale.Tr "repo.pulls.view" }} </ a >
2021-12-24 17:44:42 +05:30
{{ else if .Issue.IsClosed }}
2024-02-25 19:32:20 +05:30
< a href = " {{ $.RepoLink }} /pulls/ {{ .PullRequest.Issue.Index }} " class = "ui button red show-form" > {{ svg "octicon-issue-closed" 16 }} {{ ctx .Locale.Tr "repo.pulls.view" }} </ a >
2021-12-24 17:44:42 +05:30
{{ else }}
2024-02-25 19:32:20 +05:30
< a href = " {{ $.RepoLink }} /pulls/ {{ .PullRequest.Issue.Index }} " class = "ui button primary show-form" > {{ svg "octicon-git-pull-request" 16 }} {{ ctx .Locale.Tr "repo.pulls.view" }} </ a >
2023-05-09 10:51:03 +05:30
{{ end }}
< / div >
2021-04-11 09:16:37 +05:30
< / div >
2020-05-05 04:14:30 +05:30
{{ else }}
{{ if and $.IsSigned ( not .Repository.IsArchived ) }}
2024-03-24 23:53:38 +05:30
< div class = "ui info message show-form-container {{ if .Flash }} tw-hidden {{ end }} " >
2023-09-25 14:26:50 +05:30
< button class = "ui button primary show-form" > {{ ctx .Locale.Tr "repo.pulls.new" }} </ button >
2020-05-05 04:14:30 +05:30
< / div >
{{ else if .Repository.IsArchived }}
2024-03-04 09:03:20 +05:30
< div class = "ui warning message tw-text-center" >
2023-04-26 20:16:26 +05:30
{{ if .Repository.ArchivedUnix.IsZero }}
2023-09-25 14:26:50 +05:30
{{ ctx .Locale.Tr "repo.archive.title" }}
2023-04-26 20:16:26 +05:30
{{ else }}
2024-02-22 22:32:33 +05:30
{{ ctx .Locale.Tr "repo.archive.title_date" ( DateTime "long" .Repository.ArchivedUnix ) }}
2023-04-26 20:16:26 +05:30
{{ end }}
2020-05-05 04:14:30 +05:30
< / div >
{{ end }}
{{ if $.IsSigned }}
2024-03-24 23:53:38 +05:30
< div class = "pullrequest-form {{ if not .Flash }} tw-hidden {{ end }} " >
2020-05-05 04:14:30 +05:30
{{ template "repo/issue/new_form" . }}
< / div >
{{ end }}
2023-05-09 10:51:03 +05:30
{{ $showDiffBox = true }}
2020-05-05 04:14:30 +05:30
{{ end }}
2024-01-21 20:43:00 +05:30
{{ else if not .IsNothingToCompare }}
2023-05-09 10:51:03 +05:30
{{ $showDiffBox = true }}
{{ end }}
< / div >
{{ if $showDiffBox }}
2023-11-23 21:22:57 +05:30
< div class = "ui container fluid padded" >
2019-06-08 01:59:29 +05:30
{{ template "repo/commits_table" . }}
{{ template "repo/diff/box" . }}
< / div >
2023-05-09 10:51:03 +05:30
{{ end }}
2019-06-08 01:59:29 +05:30
< / div >
{{ template "base/footer" . }}