2022-03-30 16:42:47 +08:00
|
|
|
{{template "base/head" .}}
|
|
|
|
<div class="page-content repository view issue packages">
|
|
|
|
{{template "user/overview/header" .}}
|
|
|
|
<div class="ui container">
|
|
|
|
<div>
|
|
|
|
<div class="ui stackable grid">
|
|
|
|
<div class="sixteen wide column title">
|
|
|
|
<div class="issue-title">
|
|
|
|
<h1>{{.PackageDescriptor.Package.Name}} ({{.PackageDescriptor.Version.Version}})</h1>
|
|
|
|
</div>
|
|
|
|
<div>
|
2022-06-28 04:58:46 +08:00
|
|
|
{{$timeStr := TimeSinceUnix .PackageDescriptor.Version.CreatedUnix $.locale}}
|
2022-05-08 00:21:15 +08:00
|
|
|
{{if .HasRepositoryAccess}}
|
2022-06-28 04:58:46 +08:00
|
|
|
{{.locale.Tr "packages.published_by_in" $timeStr .PackageDescriptor.Creator.HomeLink (.PackageDescriptor.Creator.GetDisplayName | Escape) .PackageDescriptor.Repository.HTMLURL (.PackageDescriptor.Repository.FullName | Escape) | Safe}}
|
2022-03-30 16:42:47 +08:00
|
|
|
{{else}}
|
2022-06-28 04:58:46 +08:00
|
|
|
{{.locale.Tr "packages.published_by" $timeStr .PackageDescriptor.Creator.HomeLink (.PackageDescriptor.Creator.GetDisplayName | Escape) | Safe}}
|
2022-03-30 16:42:47 +08:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
<div class="ui divider"></div>
|
|
|
|
</div>
|
|
|
|
<div class="twelve wide column">
|
|
|
|
{{template "package/content/composer" .}}
|
|
|
|
{{template "package/content/conan" .}}
|
|
|
|
{{template "package/content/container" .}}
|
|
|
|
{{template "package/content/generic" .}}
|
2022-04-20 00:55:35 +08:00
|
|
|
{{template "package/content/helm" .}}
|
2022-03-30 16:42:47 +08:00
|
|
|
{{template "package/content/maven" .}}
|
2022-04-20 00:55:35 +08:00
|
|
|
{{template "package/content/npm" .}}
|
|
|
|
{{template "package/content/nuget" .}}
|
2022-08-07 18:09:54 +08:00
|
|
|
{{template "package/content/pub" .}}
|
2022-03-30 16:42:47 +08:00
|
|
|
{{template "package/content/pypi" .}}
|
|
|
|
{{template "package/content/rubygems" .}}
|
|
|
|
</div>
|
|
|
|
<div class="four wide column">
|
|
|
|
<div class="ui segment metas">
|
2022-06-28 04:58:46 +08:00
|
|
|
<strong>{{.locale.Tr "packages.details"}}</strong>
|
2022-03-30 16:42:47 +08:00
|
|
|
<div class="ui relaxed list">
|
|
|
|
<div class="item">{{svg .PackageDescriptor.Package.Type.SVGName 16 "mr-3"}} {{.PackageDescriptor.Package.Type.Name}}</div>
|
2022-05-08 00:21:15 +08:00
|
|
|
{{if .HasRepositoryAccess}}
|
2022-03-30 16:42:47 +08:00
|
|
|
<div class="item">{{svg "octicon-repo" 16 "mr-3"}} <a href="{{.PackageDescriptor.Repository.HTMLURL}}">{{.PackageDescriptor.Repository.FullName}}</a></div>
|
|
|
|
{{end}}
|
2022-08-24 09:39:00 +08:00
|
|
|
<div class="item">{{svg "octicon-calendar" 16 "mr-3"}} {{TimeSinceUnix .PackageDescriptor.Version.CreatedUnix $.locale}}</div>
|
2022-03-30 16:42:47 +08:00
|
|
|
<div class="item">{{svg "octicon-download" 16 "mr-3"}} {{.PackageDescriptor.Version.DownloadCount}}</div>
|
|
|
|
{{template "package/metadata/composer" .}}
|
|
|
|
{{template "package/metadata/conan" .}}
|
|
|
|
{{template "package/metadata/container" .}}
|
|
|
|
{{template "package/metadata/generic" .}}
|
2022-04-20 00:55:35 +08:00
|
|
|
{{template "package/metadata/helm" .}}
|
2022-03-30 16:42:47 +08:00
|
|
|
{{template "package/metadata/maven" .}}
|
2022-04-20 00:55:35 +08:00
|
|
|
{{template "package/metadata/npm" .}}
|
|
|
|
{{template "package/metadata/nuget" .}}
|
2022-08-07 18:09:54 +08:00
|
|
|
{{template "package/metadata/pub" .}}
|
2022-03-30 16:42:47 +08:00
|
|
|
{{template "package/metadata/pypi" .}}
|
|
|
|
{{template "package/metadata/rubygems" .}}
|
|
|
|
</div>
|
|
|
|
{{if not (eq .PackageDescriptor.Package.Type "container")}}
|
|
|
|
<div class="ui divider"></div>
|
2022-06-28 04:58:46 +08:00
|
|
|
<strong>{{.locale.Tr "packages.assets"}} ({{len .PackageDescriptor.Files}})</strong>
|
2022-03-30 16:42:47 +08:00
|
|
|
<div class="ui relaxed list">
|
|
|
|
{{range .PackageDescriptor.Files}}
|
|
|
|
<div class="item">
|
|
|
|
<a href="{{$.Link}}/files/{{.File.ID}}">{{.File.Name}}</a>
|
|
|
|
<span class="text small file-size">{{FileSize .Blob.Size}}</span>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{if .LatestVersions}}
|
|
|
|
<div class="ui divider"></div>
|
2022-06-28 04:58:46 +08:00
|
|
|
<strong>{{.locale.Tr "packages.versions"}} ({{.TotalVersionCount}})</strong>
|
|
|
|
<a class="ui right" href="{{$.PackageDescriptor.PackageWebLink}}/versions">{{.locale.Tr "packages.versions.view_all"}}</a>
|
2022-03-30 16:42:47 +08:00
|
|
|
<div class="ui relaxed list">
|
|
|
|
{{range .LatestVersions}}
|
|
|
|
<div class="item">
|
|
|
|
<a href="{{$.PackageDescriptor.PackageWebLink}}/{{PathEscape .LowerVersion}}">{{.Version}}</a>
|
2022-06-28 04:58:46 +08:00
|
|
|
<span class="text small">{{$.locale.Tr "packages.versions.on"}} {{.CreatedUnix.FormatDate}}</span>
|
2022-03-30 16:42:47 +08:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2022-05-08 00:21:15 +08:00
|
|
|
{{if or .CanWritePackages .HasRepositoryAccess}}
|
2022-03-30 16:42:47 +08:00
|
|
|
<div class="ui divider"></div>
|
|
|
|
<div class="ui relaxed list">
|
2022-05-08 00:21:15 +08:00
|
|
|
{{if .HasRepositoryAccess}}
|
2022-06-28 04:58:46 +08:00
|
|
|
<div class="item">{{svg "octicon-issue-opened" 16 "mr-3"}} <a href="{{.PackageDescriptor.Repository.HTMLURL}}/issues">{{.locale.Tr "repo.issues"}}</a></div>
|
2022-03-30 16:42:47 +08:00
|
|
|
{{end}}
|
|
|
|
{{if .CanWritePackages}}
|
2022-06-28 04:58:46 +08:00
|
|
|
<div class="item">{{svg "octicon-tools" 16 "mr-3"}} <a href="{{.Link}}/settings">{{.locale.Tr "repo.settings"}}</a></div>
|
2022-03-30 16:42:47 +08:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|