浏览代码

[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 年之前
父节点
当前提交
c54f1a99a0
共有 1 个文件被更改,包括 2 次插入2 次删除
  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}}