|
|
@@ -4,7 +4,7 @@ |
|
|
|
<div class="ui stackable grid header-grid"> |
|
|
|
<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"> |
|
|
|
{{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 .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" 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> |
|
|
@@ -23,13 +23,13 @@ |
|
|
|
<div class="ui tabs container"> |
|
|
|
<div class="ui tabular stackable menu navbar"> |
|
|
|
{{if .Repository.UnitEnabled $.UnitTypeCode}} |
|
|
|
<a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}"> |
|
|
|
<a class="{{if .PageIsViewCode}}active{{end}} item" href="{{.RepoLink}}{{if (ne .BranchName .Repository.DefaultBranch)}}/src/{{.BranchNameSubURL}}{{end}}"> |
|
|
|
<i class="octicon octicon-code"></i> {{.i18n.Tr "repo.code"}} |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|
|
|
|
|
{{if .Repository.UnitEnabled $.UnitTypeIssues}} |
|
|
|
<a class="{{if .PageIsIssueList}}active{{end}} item" href="{{.RepoLink}}/issues"> |
|
|
|
<a class="{{if .PageIsIssueList}}active{{end}} item" href="{{.RepoLink}}/issues" rel="noopener noreferrer"> |
|
|
|
<i class="octicon octicon-issue-opened"></i> {{.i18n.Tr "repo.issues"}} <span class="ui small label">{{.Repository.NumOpenIssues}}</span> |
|
|
|
</a> |
|
|
|
{{end}} |
|
|
|