Browse Source

[DOI] Show button only on repo root page

cgars 8 năm trước cách đây
mục cha
commit
fe6b154153
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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">