From 9f43fc9d9aa8ee99b2ad1a86e76423796ffda198 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Thu, 5 May 2022 16:33:37 +0200 Subject: [PATCH] remove webUI part for another pull --- templates/repo/issue/view_content/pull.tmpl | 406 ++------------------ web_src/js/features/repo-issue.js | 24 +- 2 files changed, 35 insertions(+), 395 deletions(-) diff --git a/templates/repo/issue/view_content/pull.tmpl b/templates/repo/issue/view_content/pull.tmpl index f2a3192e5bce..8c43ace32e13 100644 --- a/templates/repo/issue/view_content/pull.tmpl +++ b/templates/repo/issue/view_content/pull.tmpl @@ -321,25 +321,8 @@ {{if .AllowMerge}} {{$prUnit := .Repository.MustGetUnit $.UnitTypePullRequests}} {{$approvers := .Issue.PullRequest.GetApprovers}} - {{/* We build a custom variable here to not clutter the template with checks if .LatestCommitStatus exists. */}} - {{$statusChecksPending := true}} - {{if .LatestCommitStatus}} - {{$statusChecksPending = not (eq .LatestCommitStatus.State "success")}} - {{end}} - {{if or $prUnit.PullRequestsConfig.AllowMerge $prUnit.PullRequestsConfig.AllowRebase $prUnit.PullRequestsConfig.AllowRebaseMerge $prUnit.PullRequestsConfig.AllowSquash}}
- {{ $mergeButtonColor := "green"}} - {{if $statusChecksPending}} - {{ $mergeButtonColor = "blue"}} - {{end}} - {{ if .HasPendingPullRequestMerge }} - {{ $mergeButtonColor = "red"}} - {{ $createdPRMergeStr:= TimeSinceUnix .PendingPullRequestMerge.CreatedUnix $.i18n.Lang }} -
- {{$.i18n.Tr "repo.pulls.pr_has_pending_merge_on_success" .PendingPullRequestMerge.Doer.Name $createdPRMergeStr | Safe }} -
- {{end}} {{if $prUnit.PullRequestsConfig.AllowMerge}} - - {{end}} - {{if $prUnit.PullRequestsConfig.AllowRebase}} - - {{end}} - {{if $prUnit.PullRequestsConfig.AllowRebaseMerge}} - -