mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-24 23:33:33 +01: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>
53 lines
2.2 KiB
Handlebars
53 lines
2.2 KiB
Handlebars
{{template "base/alert" .}}
|
|
<form class="ui form ignore-dirty">
|
|
<div class="ui fluid action input">
|
|
{{template "shared/searchinput" dict "locale" .locale "Value" .Query "AutoFocus" true}}
|
|
<select class="ui dropdown" name="type">
|
|
<option value="">{{.locale.Tr "packages.filter.type"}}</option>
|
|
<option value="all">{{.locale.Tr "packages.filter.type.all"}}</option>
|
|
{{range $type := .AvailableTypes}}
|
|
<option{{if eq $.PackageType $type}} selected="selected"{{end}} value="{{$type}}">{{$type.Name}}</option>
|
|
{{end}}
|
|
</select>
|
|
<button class="ui primary button">{{.locale.Tr "explore.search"}}</button>
|
|
</div>
|
|
</form>
|
|
<div class="ui {{if .PackageDescriptors}}issue list{{end}}">
|
|
{{range .PackageDescriptors}}
|
|
<li class="item gt-df gt-py-3">
|
|
<div class="issue-item-main">
|
|
<div class="issue-item-top-row">
|
|
<a class="title" href="{{.FullWebLink}}">{{.Package.Name}}</a>
|
|
<span class="ui label">{{svg .Package.Type.SVGName 16}} {{.Package.Type.Name}}</span>
|
|
</div>
|
|
<div class="desc issue-item-bottom-row">
|
|
{{$timeStr := TimeSinceUnix .Version.CreatedUnix $.locale}}
|
|
{{$hasRepositoryAccess := false}}
|
|
{{if .Repository}}
|
|
{{$hasRepositoryAccess = index $.RepositoryAccessMap .Repository.ID}}
|
|
{{end}}
|
|
{{if $hasRepositoryAccess}}
|
|
{{$.locale.Tr "packages.published_by_in" $timeStr .Creator.HomeLink (.Creator.GetDisplayName | Escape) .Repository.Link (.Repository.FullName | Escape) | Safe}}
|
|
{{else}}
|
|
{{$.locale.Tr "packages.published_by" $timeStr .Creator.HomeLink (.Creator.GetDisplayName | Escape) | Safe}}
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
</li>
|
|
{{else}}
|
|
{{if not .HasPackages}}
|
|
<div class="gt-pt-5 empty center">
|
|
{{svg "octicon-package" 48}}
|
|
<h2>{{.locale.Tr "packages.empty"}}</h2>
|
|
{{if and .Repository .CanWritePackages}}
|
|
{{$packagesUrl := URLJoin .Owner.HomeLink "-" "packages"}}
|
|
<p>{{.locale.Tr "packages.empty.repo" $packagesUrl | Safe}}</p>
|
|
{{end}}
|
|
<p>{{.locale.Tr "packages.empty.documentation" "https://docs.gitea.io/en-us/usage/packages/overview/" | Safe}}</p>
|
|
</div>
|
|
{{else}}
|
|
<p>{{.locale.Tr "packages.filter.no_result"}}</p>
|
|
{{end}}
|
|
{{end}}
|
|
{{template "base/paginate" .}}
|
|
</div>
|