Explorar el Código

[Doi] Show doify button only with public repos

cgars hace 7 años
padre
commit
a9cc89160f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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">