mirror of
https://github.com/go-gitea/gitea
synced 2024-11-18 16:14:26 +00:00
2af30f715e
Fix ::User Profile Page Project Tab Have Inconsistent Layout and Style Added the big_avator for consistency in the all header_items tabs. Fixes: #24871 > ### Description > in the user profile page the `Packages` and `Projects` tab have small icons for user but other tabs have bigger profile picture with user info: > > ### Screenshots > ### **For Packages And Projects:** > ![image](https://user-images.githubusercontent.com/25511175/240148601-2420d77b-ba25-4718-9ccb-c5d0d95e3079.png) > > ### **For Other Tabs:** > ![image](https://user-images.githubusercontent.com/25511175/240148461-ce9636b3-fe11-4c46-a230-30d83eee5947.png) > ## Before ![image](https://github.com/go-gitea/gitea/assets/80308335/975ad038-07ca-4b10-b75d-ccf259be7b9d) ## After changes Project View <img width="1394" alt="image" src="https://github.com/go-gitea/gitea/assets/80308335/95d181d7-8e61-496d-9899-7b825c91ad56"> Packages View <img width="1378" alt="image" src="https://github.com/go-gitea/gitea/assets/80308335/7f5fd60f-6b18-4fa8-8c56-7b0d45d1a610"> ## Org view for projects page <img width="1385" alt="image" src="https://github.com/go-gitea/gitea/assets/80308335/6400dc89-a5ae-4f0a-831b-5b6efa020d89"> ## Org view for packages page <img width="1387" alt="image" src="https://github.com/go-gitea/gitea/assets/80308335/4e1e9ffe-1e4b-4334-8657-de11b5fd31d0"> --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: silverwind <me@silverwind.io>
115 lines
5.3 KiB
Handlebars
115 lines
5.3 KiB
Handlebars
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository view issue packages">
|
|
{{template "shared/user/org_profile_avatar" .}}
|
|
<div class="ui container">
|
|
{{template "user/overview/header" .}}
|
|
<div class="issue-title-header">
|
|
<div class="issue-title">
|
|
<h1>{{.PackageDescriptor.Package.Name}} ({{.PackageDescriptor.Version.Version}})</h1>
|
|
</div>
|
|
<div>
|
|
{{$timeStr := TimeSinceUnix .PackageDescriptor.Version.CreatedUnix $.locale}}
|
|
{{if .HasRepositoryAccess}}
|
|
{{.locale.Tr "packages.published_by_in" $timeStr .PackageDescriptor.Creator.HomeLink (.PackageDescriptor.Creator.GetDisplayName | Escape) .PackageDescriptor.Repository.Link (.PackageDescriptor.Repository.FullName | Escape) | Safe}}
|
|
{{else}}
|
|
{{.locale.Tr "packages.published_by" $timeStr .PackageDescriptor.Creator.HomeLink (.PackageDescriptor.Creator.GetDisplayName | Escape) | Safe}}
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
<div class="issue-content">
|
|
<div class="issue-content-left">
|
|
{{template "package/content/alpine" .}}
|
|
{{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">
|
|
<strong>{{.locale.Tr "packages.details"}}</strong>
|
|
<div class="ui relaxed list">
|
|
<div class="item">{{svg .PackageDescriptor.Package.Type.SVGName 16 "gt-mr-3"}} {{.PackageDescriptor.Package.Type.Name}}</div>
|
|
{{if .HasRepositoryAccess}}
|
|
<div class="item">{{svg "octicon-repo" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Repository.Link}}">{{.PackageDescriptor.Repository.FullName}}</a></div>
|
|
{{end}}
|
|
<div class="item">{{svg "octicon-calendar" 16 "gt-mr-3"}} {{TimeSinceUnix .PackageDescriptor.Version.CreatedUnix $.locale}}</div>
|
|
<div class="item">{{svg "octicon-download" 16 "gt-mr-3"}} {{.PackageDescriptor.Version.DownloadCount}}</div>
|
|
{{template "package/metadata/alpine" .}}
|
|
{{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)}}
|
|
<div class="item">{{svg "octicon-database" 16 "gt-mr-3"}} {{FileSize .PackageDescriptor.CalculateBlobSize}}</div>
|
|
{{end}}
|
|
</div>
|
|
{{if not (eq .PackageDescriptor.Package.Type "container")}}
|
|
<div class="divider"></div>
|
|
<strong>{{.locale.Tr "packages.assets"}} ({{len .PackageDescriptor.Files}})</strong>
|
|
<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}}
|
|
<div class="divider"></div>
|
|
<strong>{{.locale.Tr "packages.versions"}} ({{.TotalVersionCount}})</strong>
|
|
<a class="ui right" href="{{$.PackageDescriptor.PackageWebLink}}/versions">{{.locale.Tr "packages.versions.view_all"}}</a>
|
|
<div class="ui relaxed list">
|
|
{{range .LatestVersions}}
|
|
<div class="item gt-df">
|
|
<a class="gt-f1" href="{{$.PackageDescriptor.PackageWebLink}}/{{PathEscape .LowerVersion}}">{{.Version}}</a>
|
|
<span class="text small">{{DateTime "short" .CreatedUnix}}</span>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
{{if or .CanWritePackages .HasRepositoryAccess}}
|
|
<div class="divider"></div>
|
|
<div class="ui relaxed list">
|
|
{{if .HasRepositoryAccess}}
|
|
<div class="item">{{svg "octicon-issue-opened" 16 "gt-mr-3"}} <a href="{{.PackageDescriptor.Repository.Link}}/issues">{{.locale.Tr "repo.issues"}}</a></div>
|
|
{{end}}
|
|
{{if .CanWritePackages}}
|
|
<div class="item">{{svg "octicon-tools" 16 "gt-mr-3"}} <a href="{{.Link}}/settings">{{.locale.Tr "repo.settings"}}</a></div>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|