Browse Source

[repo/home] Revert repo head UI to upstream

Removes the words "Pull Request" from the PR button.  Pulls in upstream
special character escaping for branch names (EscapePound)
Achilleas Koutsou 6 năm trước cách đây
mục cha
commit
c54f1a99a0
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      templates/repo/home.tmpl

+ 2 - 2
templates/repo/home.tmpl

@@ -25,8 +25,8 @@
 		<div class="ui secondary menu">
 			{{if .PullRequestCtx.Allowed}}
 				<div class="fitted item" data-tooltip="Please note: annexed file content will not be part of a pull request">
-					<a href="{{.BaseRepo.Link}}/compare/{{.BaseRepo.DefaultBranch}}...{{.PullRequestCtx.HeadInfo}}">
-						<button class="ui green small button"><i class="octicon octicon-git-compare"></i>Pull request</button>
+					<a href="{{.BaseRepo.Link}}/compare/{{EscapePound .BaseRepo.DefaultBranch}}...{{EscapePound .PullRequestCtx.HeadInfo}}">
+						<button class="ui green small button"><i class="octicon octicon-git-compare"></i></button>
 					</a>
 				</div>
 				{{else if or .IsRepositoryWriter .HasForked}}