diff --git a/integrations/pull_create_test.go b/integrations/pull_create_test.go index 671b5e7551b50..16b733adba0d3 100644 --- a/integrations/pull_create_test.go +++ b/integrations/pull_create_test.go @@ -16,12 +16,12 @@ import ( ) func testPullCreate(t *testing.T, session *TestSession, user, repo, branch, title string) *httptest.ResponseRecorder { - req := NewRequest(t, "GET", path.Join(user, repo)) + req := NewRequest(t, "GET", path.Join(user, repo, "pulls")) resp := session.MakeRequest(t, req, http.StatusOK) // Click the PR button to create a pull htmlDoc := NewHTMLParser(t, resp.Body) - link, exists := htmlDoc.doc.Find("#new-pull-request").Parent().Attr("href") + link, exists := htmlDoc.doc.Find("#new-pull-request").Attr("href") assert.True(t, exists, "The template has changed") if branch != "master" { link = strings.Replace(link, ":master", ":"+branch, 1) diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 0734076eff490..11103856467e2 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -64,15 +64,8 @@ {{template "repo/branch_dropdown" dict "root" .}} {{ $n := len .TreeNames}} {{ $l := Subtract $n 1}} - + {{if eq $n 0}} - {{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}} -
- - - -
- {{end}}
{{.locale.Tr "repo.find_file.go_to_file"}} diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index 2a53239f1c6f7..ff425241595d7 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -14,7 +14,7 @@ {{if .PageIsIssueList}} {{.locale.Tr "repo.issues.new"}} {{else}} - {{.locale.Tr "repo.pulls.new"}} + {{.locale.Tr "repo.pulls.new"}} {{end}}
{{else}}