|
|
@ -63,7 +63,7 @@
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{template "repo/sub_menu" .}}
|
|
|
|
{{template "repo/sub_menu" .}}
|
|
|
|
<div class="repo-button-row gt-df gt-ac gt-sb gt-fw">
|
|
|
|
<div class="repo-button-row gt-df gt-ac gt-sb gt-fw">
|
|
|
|
<div class="gt-df gt-ac">
|
|
|
|
<div class="gt-df gt-ac gt-fw gt-gap-y-3">
|
|
|
|
{{template "repo/branch_dropdown" dict "root" .}}
|
|
|
|
{{template "repo/branch_dropdown" dict "root" .}}
|
|
|
|
{{$n := len .TreeNames}}
|
|
|
|
{{$n := len .TreeNames}}
|
|
|
|
{{$l := Subtract $n 1}}
|
|
|
|
{{$l := Subtract $n 1}}
|
|
|
@ -99,20 +99,16 @@
|
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if and (eq $n 0) (.Repository.IsTemplate)}}
|
|
|
|
|
|
|
|
<a role="button" class="ui primary compact button" href="{{AppSubUrl}}/repo/create?template_id={{.Repository.ID}}">
|
|
|
|
|
|
|
|
{{.locale.Tr "repo.use_template"}}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
{{end}}
|
|
|
|
{{if ne $n 0}}
|
|
|
|
{{if ne $n 0}}
|
|
|
|
<span class="ui breadcrumb repo-path gt-ml-2"><a class="section" href="{{.RepoLink}}/src/{{.BranchNameSubURL}}" title="{{.Repository.Name}}">{{EllipsisString .Repository.Name 30}}</a>{{range $i, $v := .TreeNames}}<span class="divider">/</span>{{if eq $i $l}}<span class="active section" title="{{$v}}">{{EllipsisString $v 30}}</span>{{else}}{{$p := index $.Paths $i}}<span class="section"><a href="{{$.BranchLink}}/{{PathEscapeSegments $p}}" title="{{$v}}">{{EllipsisString $v 30}}</a></span>{{end}}{{end}}</span>
|
|
|
|
<span class="ui breadcrumb repo-path gt-ml-2"><a class="section" href="{{.RepoLink}}/src/{{.BranchNameSubURL}}" title="{{.Repository.Name}}">{{EllipsisString .Repository.Name 30}}</a>{{range $i, $v := .TreeNames}}<span class="divider">/</span>{{if eq $i $l}}<span class="active section" title="{{$v}}">{{EllipsisString $v 30}}</span>{{else}}{{$p := index $.Paths $i}}<span class="section"><a href="{{$.BranchLink}}/{{PathEscapeSegments $p}}" title="{{$v}}">{{EllipsisString $v 30}}</a></span>{{end}}{{end}}</span>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="gt-df gt-ac">
|
|
|
|
<div class="gt-df gt-ac">
|
|
|
|
{{if eq $n 0}}
|
|
|
|
|
|
|
|
{{if .Repository.IsTemplate}}
|
|
|
|
|
|
|
|
<div class="ui tiny primary buttons">
|
|
|
|
|
|
|
|
<a href="{{AppSubUrl}}/repo/create?template_id={{.Repository.ID}}" class="ui button">
|
|
|
|
|
|
|
|
{{.locale.Tr "repo.use_template"}}
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<!-- Only show clone panel in repository home page -->
|
|
|
|
<!-- Only show clone panel in repository home page -->
|
|
|
|
{{if eq $n 0}}
|
|
|
|
{{if eq $n 0}}
|
|
|
|
<div class="ui action tiny input" id="clone-panel">
|
|
|
|
<div class="ui action tiny input" id="clone-panel">
|
|
|
|