浏览代码

Only show DOI buttons on repo home page

Achilleas Koutsou 5 年之前
父节点
当前提交
c0a3376328
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      templates/repo/header_gin.tmpl

+ 1 - 1
templates/repo/header_gin.tmpl

@@ -4,7 +4,7 @@
 			<div class="ui header">
 				{{if not $.IsGuest}}
 					<div class="ui right">
-						{{if $.IsRepositoryAdmin}}
+						{{if and $.IsRepositoryAdmin .PageIsRepoHome}}
 							{{if $.IsDOIReady}} {{/* Ready to (re)register: Show button */}}
 							<div class="ui labeled button" tabindex="0">
 								<a class="ui basic button" href="/{{.Repository.Owner.Name}}/{{.Repository.Name}}/doi"><i class="octicon octicon-squirrel"></i> Request DOI</a>