|
|
@@ -1,17 +1,21 @@ |
|
|
|
<div class="header-wrapper"> |
|
|
|
{{with .Repository}} |
|
|
|
<div class="ui container"> |
|
|
|
<div class="ui container repo-header"> |
|
|
|
<div class="ui stackable grid header-grid"> |
|
|
|
<div class="eight wide column"> |
|
|
|
<i class="mega-octicon octicon-{{if .IsPrivate}}lock{{else if .IsMirror}}repo-clone{{else if .IsFork}}repo-forked{{else}}repo{{end}}"></i> |
|
|
|
<div class="ui huge breadcrumb"> |
|
|
|
<i class="mega-octicon octicon-{{if .IsPrivate}}lock{{else if .IsMirror}}repo-clone{{else if .IsFork}}repo-forked{{else}}repo{{end}}"></i> |
|
|
|
{{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener" 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}} |
|
|
|
<a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a> |
|
|
|
<div class="divider"> / </div> |
|
|
|
<a href="{{$.RepoLink}}">{{.Name}}</a> |
|
|
|
{{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener" 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> |
|
|
|
</div> |
|
|
|
<div class="ui repo-description"> |
|
|
|
<div id="repo-desc"> |
|
|
|
{{if .DescriptionHTML}}<span class="description has-emoji">{{.DescriptionHTML}}</span>{{end}} |
|
|
|
<a class="link" href="{{.Website}}">{{.Website}}</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div><!-- end grid --> |
|
|
|
</div><!-- end container --> |
|
|
|
{{end}} |
|
|
|