浏览代码

[Doi] Show doify button only with public repos

cgars 7 年之前
父节点
当前提交
a9cc89160f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      templates/repo/header.tmpl

+ 1 - 1
templates/repo/header.tmpl

@@ -39,7 +39,7 @@
 									</a>
 								</div>
 							{{end}}
-							{{if and $.DOI $.IsRepositoryAdmin}}
+							{{if and (and $.DOI $.IsRepositoryAdmin) (not .IsPrivate)}}
 							<div class="ui labeled button" tabindex="0">
 								<a class="ui basic button"
 									 href="/{{.Owner.Name}}/{{.Name}}/doi">