diff options
author | Jimmy Praet <jimmy.praet@telenet.be> | 2021-05-27 22:02:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 22:02:04 +0200 |
commit | c9480c5f606e1e83f8f9c373052c0ba758bf300b (patch) | |
tree | ad1897aefa7a8b727c673f9f742dbfe26d05edd9 /routers | |
parent | 6d6a65cf5cc13deddd96bb76b773667d068823d4 (diff) | |
download | gitea-c9480c5f606e1e83f8f9c373052c0ba758bf300b.tar.gz gitea-c9480c5f606e1e83f8f9c373052c0ba758bf300b.zip |
Add links to toggle WIP status (#14677)
* Add links to toggle PR WIP status
* Allow PR author to toggle WIP status
* refactors and restyling, remove links from translations
Co-authored-by: Norwin <noerw@users.noreply.github.com>
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/pull.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go index e13ad0cc03..bb166c68a6 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -519,6 +519,8 @@ func PrepareViewPullInfo(ctx *context.Context, issue *models.Issue) *git.Compare return nil } + ctx.Data["PullRequestWorkInProgressPrefixes"] = setting.Repository.PullRequest.WorkInProgressPrefixes + if pull.IsWorkInProgress() { ctx.Data["IsPullWorkInProgress"] = true ctx.Data["WorkInProgressPrefix"] = pull.GetWorkInProgressPrefix() |