2022-03-30 11:42:47 +03:00
{{ template "base/head" . }}
2024-12-05 02:09:07 +03:00
<div role="main" aria-label=" {{ .Title }} " class="page-content repository packages">
2023-07-06 21:59:24 +03:00
{{ template "shared/user/org_profile_avatar" . }}
2022-03-30 11:42:47 +03:00
<div class="ui container">
2023-07-06 21:59:24 +03:00
{{ template "user/overview/header" . }}
2023-05-29 13:44:03 +03:00
<div class="issue-title-header">
2024-12-05 02:09:07 +03:00
<h1> {{ .PackageDescriptor .Package .Name }} ( {{ .PackageDescriptor .Version .Version }} )</h1>
2023-05-29 13:44:03 +03:00
<div>
2024-11-04 14:30:00 +03:00
{{ $ timeStr : = DateUtils .TimeSince .PackageDescriptor .Version .CreatedUnix }}
2023-05-29 13:44:03 +03:00
{{ if .HasRepositoryAccess }}
2024-02-25 17:02:20 +03:00
{{ ctx .Locale .Tr "packages.published_by_in" $ timeStr .PackageDescriptor .Creator .HomeLink .PackageDescriptor .Creator .GetDisplayName .PackageDescriptor .Repository .Link .PackageDescriptor .Repository .FullName }}
2023-05-29 13:44:03 +03:00
{{ else }}
2024-02-25 17:02:20 +03:00
{{ ctx .Locale .Tr "packages.published_by" $ timeStr .PackageDescriptor .Creator .HomeLink .PackageDescriptor .Creator .GetDisplayName }}
2023-05-29 13:44:03 +03:00
{{ end }}
</div>
</div>
<div class="issue-content">
<div class="issue-content-left">
{{ template "package/content/alpine" . }}
2024-12-05 02:09:07 +03:00
{{ template "package/content/arch" . }}
2023-05-29 13:44:03 +03:00
{{ template "package/content/cargo" . }}
{{ template "package/content/chef" . }}
{{ template "package/content/composer" . }}
{{ template "package/content/conan" . }}
{{ template "package/content/conda" . }}
{{ template "package/content/container" . }}
{{ template "package/content/cran" . }}
{{ template "package/content/debian" . }}
{{ template "package/content/generic" . }}
{{ template "package/content/go" . }}
{{ template "package/content/helm" . }}
{{ template "package/content/maven" . }}
{{ template "package/content/npm" . }}
{{ template "package/content/nuget" . }}
{{ template "package/content/pub" . }}
{{ template "package/content/pypi" . }}
{{ template "package/content/rpm" . }}
{{ template "package/content/rubygems" . }}
{{ template "package/content/swift" . }}
{{ template "package/content/vagrant" . }}
</div>
<div class="issue-content-right ui segment">
2023-09-25 11:56:50 +03:00
<strong> {{ ctx .Locale .Tr "packages.details" }} </strong>
2024-12-05 02:09:07 +03:00
<div class="ui relaxed list flex-items-block">
<div class="item"> {{ svg .PackageDescriptor .Package .Type .SVGName }} {{ .PackageDescriptor .Package .Type .Name }} </div>
2023-05-29 13:44:03 +03:00
{{ if .HasRepositoryAccess }}
2024-12-05 02:09:07 +03:00
<div class="item"> {{ svg "octicon-repo" }} <a href=" {{ .PackageDescriptor .Repository .Link }} "> {{ .PackageDescriptor .Repository .FullName }} </a></div>
2023-05-29 13:44:03 +03:00
{{ end }}
2024-12-05 02:09:07 +03:00
<div class="item"> {{ svg "octicon-calendar" }} {{ DateUtils .TimeSince .PackageDescriptor .Version .CreatedUnix }} </div>
<div class="item"> {{ svg "octicon-download" }} {{ .PackageDescriptor .Version .DownloadCount }} </div>
2023-05-29 13:44:03 +03:00
{{ template "package/metadata/alpine" . }}
2024-12-05 02:09:07 +03:00
{{ template "package/metadata/arch" . }}
2023-05-29 13:44:03 +03:00
{{ template "package/metadata/cargo" . }}
{{ template "package/metadata/chef" . }}
{{ template "package/metadata/composer" . }}
{{ template "package/metadata/conan" . }}
{{ template "package/metadata/conda" . }}
{{ template "package/metadata/container" . }}
{{ template "package/metadata/cran" . }}
{{ template "package/metadata/debian" . }}
{{ template "package/metadata/generic" . }}
{{ template "package/metadata/helm" . }}
{{ template "package/metadata/maven" . }}
{{ template "package/metadata/npm" . }}
{{ template "package/metadata/nuget" . }}
{{ template "package/metadata/pub" . }}
{{ template "package/metadata/pypi" . }}
{{ template "package/metadata/rpm" . }}
{{ template "package/metadata/rubygems" . }}
{{ template "package/metadata/swift" . }}
{{ template "package/metadata/vagrant" . }}
{{ if not ( and ( eq .PackageDescriptor .Package .Type "container" ) .PackageDescriptor .Metadata .Manifests ) }}
2024-12-05 02:09:07 +03:00
<div class="item"> {{ svg "octicon-database" }} {{ FileSize .PackageDescriptor .CalculateBlobSize }} </div>
2023-05-29 13:44:03 +03:00
{{ end }}
</div>
{{ if not ( eq .PackageDescriptor .Package .Type "container" ) }}
2023-06-29 15:24:22 +03:00
<div class="divider"></div>
2023-09-25 11:56:50 +03:00
<strong> {{ ctx .Locale .Tr "packages.assets" }} ( {{ len .PackageDescriptor .Files }} )</strong>
2023-05-29 13:44:03 +03: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 }}
2022-03-30 11:42:47 +03:00
</div>
2023-05-29 13:44:03 +03:00
{{ end }}
2023-06-29 20:01:14 +03:00
<div class="divider"></div>
2023-09-25 11:56:50 +03:00
<strong> {{ ctx .Locale .Tr "packages.versions" }} ( {{ .TotalVersionCount }} )</strong>
2024-03-04 06:33:20 +03:00
<a class="tw-float-right" href=" {{ $ .PackageDescriptor .PackageWebLink }} /versions"> {{ ctx .Locale .Tr "packages.versions.view_all" }} </a>
2023-06-29 20:01:14 +03:00
<div class="ui relaxed list">
{{ range .LatestVersions }}
2024-03-22 16:45:10 +03:00
<div class="item tw-flex">
<a class="tw-flex-1 gt-ellipsis" title=" {{ .Version }} " href=" {{ $ .PackageDescriptor .PackageWebLink }} / {{ PathEscape .LowerVersion }} "> {{ .Version }} </a>
2024-11-04 14:30:00 +03:00
<span class="text small"> {{ DateUtils .AbsoluteShort .CreatedUnix }} </span>
2023-05-29 13:44:03 +03:00
</div>
{{ end }}
2023-06-29 20:01:14 +03:00
</div>
2023-05-29 13:44:03 +03:00
{{ if or .CanWritePackages .HasRepositoryAccess }}
2023-06-29 15:24:22 +03:00
<div class="divider"></div>
2024-12-05 02:09:07 +03:00
<div class="ui relaxed list flex-items-block">
2023-05-29 13:44:03 +03:00
{{ if .HasRepositoryAccess }}
2024-12-05 02:09:07 +03:00
<div class="item"> {{ svg "octicon-issue-opened" }} <a href=" {{ .PackageDescriptor .Repository .Link }} /issues"> {{ ctx .Locale .Tr "repo.issues" }} </a></div>
2022-03-30 11:42:47 +03:00
{{ end }}
2023-05-29 13:44:03 +03:00
{{ if .CanWritePackages }}
2024-12-05 02:09:07 +03:00
<div class="item"> {{ svg "octicon-tools" }} <a href=" {{ .Link }} /settings"> {{ ctx .Locale .Tr "repo.settings" }} </a></div>
2022-03-30 11:42:47 +03:00
{{ end }}
</div>
2023-05-29 13:44:03 +03:00
{{ end }}
2022-03-30 11:42:47 +03:00
</div>
</div>
</div>
</div>
{{ template "base/footer" . }}