|
@@ -43,8 +43,7 @@
|
|
|
</div>
|
|
|
</form>
|
|
|
{{if .CanBeForked}}
|
|
|
- <div class="ui labeled button" tabindex="0"
|
|
|
- data-tooltip="Please note: annexed file content will not be forked" data-position="bottom center">
|
|
|
+ <div class="ui labeled button" tabindex="0" data-tooltip="Please note: annexed file content will not be forked" data-position="bottom center">
|
|
|
<a class="ui basic button {{if eq .OwnerID $.LoggedUserID}}poping up{{end}}" href="{{AppSubURL}}/repo/fork/{{.ID}}">
|
|
|
<i class="octicon octicon-repo-forked"></i>{{$.i18n.Tr "repo.fork"}}
|
|
|
</a>
|
|
@@ -53,76 +52,6 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
{{end}}
|
|
|
- {{if not $.DOI}}
|
|
|
- {{if and (and $.HasDatacite $.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/DOI">
|
|
|
- <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}}
|
|
|
- {{end}}
|
|
|
- </div>
|
|
|
- {{end}}
|
|
|
- </div>
|
|
|
- </div><!-- end column -->
|
|
|
- </div><!-- end grid -->
|
|
|
- </div><div class="ui container"><!-- start container -->
|
|
|
- <div class="ui vertically padded grid head"><!-- start grid -->
|
|
|
- <div class="column"><!-- start column -->
|
|
|
- <div class="ui header">
|
|
|
- {{if not $.IsGuest}}
|
|
|
- <div class="ui right">
|
|
|
- <form class="display inline" action="{{$.RepoLink}}/action/{{if $.IsWatchingRepo}}un{{end}}watch?redirect_to={{$.Link}}" method="POST">
|
|
|
- {{$.CSRFTokenHTML}}
|
|
|
- </form>
|
|
|
- {{if and (and $.HasDatacite $.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/DOI">
|
|
|
- <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}}
|
|
|
- <div class="nobg ui image label">
|
|
|
- <a href="https://doi.org/{{$.DOI}}">
|
|
|
- <div class="gin doi">DOI</div>
|
|
|
- </a>
|
|
|
- <div class="gin doinr">{{$.DOI}}</div>
|
|
|
- </div>
|
|
|
</div>
|
|
|
{{end}}
|
|
|
</div>
|
|
@@ -130,6 +59,7 @@
|
|
|
</div><!-- end grid -->
|
|
|
</div><!-- end container -->
|
|
|
{{end}}
|
|
|
+{{template "repo/header_gin" .}}
|
|
|
{{if not .IsDiffCompare}}
|
|
|
<div class="ui tabs container">
|
|
|
<div class="ui tabular menu navbar">
|