|
@@ -12,7 +12,6 @@
|
|
|
{{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" href="{{$.Mirror.Address}}">{{$.Mirror.Address}}</a></div>{{end}}
|
|
|
{{if .IsFork}}<div class="fork-flag">{{$.i18n.Tr "repo.forked_from"}} <a href="{{.BaseRepo.Link}}">{{SubStr .BaseRepo.RelLink 1 -1}}</a></div>{{end}}
|
|
|
</div>
|
|
|
-
|
|
|
{{if not $.IsGuest}}
|
|
|
<div class="ui right">
|
|
|
<div class="ui labeled button" tabindex="0">
|
|
@@ -34,29 +33,36 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
{{end}}
|
|
|
- {{if and (and $.DOI $.IsRepositoryAdmin) (not .IsPrivate)}}
|
|
|
- <div class="ui labeled button" tabindex="0">
|
|
|
- <a class="ui basic button"
|
|
|
- href="/{{.Owner.Name}}/{{.Name}}/doi">
|
|
|
- <i class="octicon octicon-squirrel"></i> DOIfy
|
|
|
- </a>
|
|
|
- </div>
|
|
|
+ {{if not $.DoiReg}}
|
|
|
+ {{if and (and $.DOI $.IsRepositoryAdmin) (not .IsPrivate)}}
|
|
|
+ <div class="ui labeled button" tabindex="0">
|
|
|
+ <a class="ui basic button"
|
|
|
+ href="/{{.Owner.Name}}/{{.Name}}/doi">
|
|
|
+ <i class="octicon octicon-squirrel"></i> DOIfy
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ {{else}}
|
|
|
+ {{if and $.IsRepositoryAdmin $.CommitsCount}}
|
|
|
+ <div class="ui labeled button " tabindex="0">
|
|
|
+ <a class="ui basic button"
|
|
|
+ data-tooltip="Your repository does not fulfill all requirements for a doi yet. Click to get instructions."
|
|
|
+ data-position="bottom center"
|
|
|
+ href="/G-Node/Info/wiki/DOIfile">
|
|
|
+ <i class="octicon octicon-squirrel"></i> DOIfy
|
|
|
+ </a>
|
|
|
+ <a class="ui basic label" href="{{$.RepoLink}}/_add/{{EscapePound $.BranchName}}/datacite.yml"
|
|
|
+ data-tooltip="Add Doifile"
|
|
|
+ data-position="bottom center">
|
|
|
+ <i class="octicon octicon-file"></i>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ {{end}}
|
|
|
+ {{end}}
|
|
|
{{else}}
|
|
|
- {{if and $.IsRepositoryAdmin $.CommitsCount}}
|
|
|
- <div class="ui labeled button " tabindex="0">
|
|
|
- <a class="ui basic button"
|
|
|
- data-tooltip="Your repository does not fulfill all requirements for a doi yet. Click to get instructions."
|
|
|
- data-position="bottom center"
|
|
|
- href="/G-Node/Info/wiki/DOIfile">
|
|
|
- <i class="octicon octicon-squirrel"></i> DOIfy
|
|
|
- </a>
|
|
|
- <a class="ui basic label" href="{{$.RepoLink}}/_add/{{EscapePound $.BranchName}}/datacite.yml"
|
|
|
- data-tooltip="Add Doifile"
|
|
|
- data-position="bottom center">
|
|
|
- <i class="octicon octicon-file"></i>
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- {{end}}
|
|
|
+ <div class="nobg ui image label">
|
|
|
+ <div class="gin doi">DOI</div>
|
|
|
+ <div class="gin doinr">{{$.doi}}</div>
|
|
|
+ </div>
|
|
|
{{end}}
|
|
|
</div>
|
|
|
{{end}}
|