Browse Source

fix pull view ui merge section (#7335)

* fix pull view ui merge section

* fix tests

* fix tests
tags/v1.9.0-rc1
Lunny Xiao techknowlogick 6 years ago
parent
commit
bdc1324307
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      integrations/pull_merge_test.go
  2. +1
    -1
      templates/repo/issue/view_content/pull.tmpl

+ 1
- 1
integrations/pull_merge_test.go View File

@@ -159,7 +159,7 @@ func TestCantMergeWorkInProgress(t *testing.T) {
req := NewRequest(t, "GET", resp.Header().Get("Location"))
resp = session.MakeRequest(t, req, http.StatusOK)
htmlDoc := NewHTMLParser(t, resp.Body)
text := strings.TrimSpace(htmlDoc.doc.Find(".merge-section.segment > .text.grey").Text())
text := strings.TrimSpace(htmlDoc.doc.Find(".attached.header > .text.grey").Last().Text())
assert.NotEmpty(t, text, "Can't find WIP text")

// remove <strong /> from lang


+ 1
- 1
templates/repo/issue/view_content/pull.tmpl View File

@@ -46,7 +46,7 @@
{{else}}red{{end}}"><span class="mega-octicon octicon-git-merge"></span></a>
<div class="content">
{{template "repo/pulls/status" .}}
<div class="ui attached merge-section segment">
<div class="ui {{if not $.LatestCommitStatus}}top attached header{{else}}attached merge-section segment{{end}}">
{{if .Issue.PullRequest.HasMerged}}
<div class="item text purple">
{{$.i18n.Tr "repo.pulls.has_merged"}}


Loading…
Cancel
Save