Przeglądaj źródła

[DOI] Show button only on repo root page

cgars 8 lat temu
rodzic
commit
fe6b154153
1 zmienionych plików z 1 dodań i 1 usunięć
  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">