Browse Source

[DOI] Show button only on repo root page

cgars 8 years ago
parent
commit
fe6b154153
1 changed files with 1 additions and 1 deletions
  1. 1 1
      templates/repo/header.tmpl

+ 1 - 1
templates/repo/header.tmpl

@@ -41,7 +41,7 @@
 								</a>
 							</div>
 							{{else}}
-							{{if $.IsRepositoryAdmin}}
+							{{if and $.IsRepositoryAdmin $.CommitsCount}}
 							<div class="ui labeled button" tabindex="0">
 								<a class="ui basic button"
 									 href="/G-Node/Info/wiki/Doi#how-to-get-a-doi">