From 2d71cdb6687435cf91d23793b0d3fce9db9881a6 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 10 Dec 2020 10:59:05 +0800 Subject: [PATCH] Add pull request manually merge instruction (#13840) * add pull request command line instructions * Add pull request manually merge instuction * Fix styles * Fix lint * Move inline style to class file * add space between merge button and hint text * Add sentence end charcter * Change the language file * adjust secondary bg * further adjustment Co-authored-by: silverwind --- options/locale/locale_en-US.ini | 7 ++ templates/repo/issue/view_content/pull.tmpl | 89 ++++++++++++--------- templates/user/dashboard/repolist.tmpl | 2 +- web_src/js/index.js | 7 ++ web_src/less/_base.less | 8 +- web_src/less/helpers.less | 2 + web_src/less/themes/theme-arc-green.less | 5 +- 7 files changed, 78 insertions(+), 42 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index ff54bcd3b3..58fd7d8f50 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -86,6 +86,9 @@ write = Write preview = Preview loading = Loading… +step1 = Step 1: +step2 = Step 2: + error404 = The page you are trying to reach either does not exist or you are not authorized to view it. [error] @@ -1296,6 +1299,10 @@ pulls.update_not_allowed = You are not allowed to update branch pulls.outdated_with_base_branch = This branch is out-of-date with the base branch pulls.closed_at = `closed this pull request %[2]s` pulls.reopened_at = `reopened this pull request %[2]s` +pulls.merge_instruction_hint = `You can also view command line instructions.` + +pulls.merge_instruction_step1_desc = From your project repository, check out a new branch and test the changes. +pulls.merge_instruction_step2_desc = Merge the changes and update on Gitea. milestones.new = New Milestone milestones.open_tab = %d Open diff --git a/templates/repo/issue/view_content/pull.tmpl b/templates/repo/issue/view_content/pull.tmpl index c8fb50d86d..facb379a18 100644 --- a/templates/repo/issue/view_content/pull.tmpl +++ b/templates/repo/issue/view_content/pull.tmpl @@ -323,43 +323,60 @@ {{end}} -
- - {{if gt $prUnit.PullRequestsConfig.AllowedMergeStyleCount 1}} -