diff options
author | silverwind <me@silverwind.io> | 2023-07-04 15:00:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 13:00:34 +0000 |
commit | 491f36d32ad038fcbc241ceccee4288d5d10e768 (patch) | |
tree | aa8139451cc0f1f49f8144802873ee2f6b9b19a2 /templates/package/shared | |
parent | 9111d2d03739eb4911961d8b4892d3f47c62918d (diff) | |
download | gitea-491f36d32ad038fcbc241ceccee4288d5d10e768.tar.gz gitea-491f36d32ad038fcbc241ceccee4288d5d10e768.zip |
Actions list enhancements (#25601) (#25678)
Backport https://github.com/go-gitea/gitea/pull/25601 to 1.20.
Various small enhancements to the actions list. Before and after:
<img width="1264" alt="Screenshot 2023-06-30 at 00 11 40"
src="https://github.com/go-gitea/gitea/assets/115237/bb4162ee-cdcf-4a73-b05e-f9521562edbb">
<img width="1264" alt="Screenshot 2023-06-30 at 00 09 51"
src="https://github.com/go-gitea/gitea/assets/115237/52a70ea9-4bb3-406e-904b-0fdaafde9582">
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates/package/shared')
-rw-r--r-- | templates/package/shared/list.tmpl | 4 | ||||
-rw-r--r-- | templates/package/shared/versionlist.tmpl | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/package/shared/list.tmpl b/templates/package/shared/list.tmpl index 707fbe357f..c9b4e5b845 100644 --- a/templates/package/shared/list.tmpl +++ b/templates/package/shared/list.tmpl @@ -16,12 +16,12 @@ <div class="ui {{if .PackageDescriptors}}issue list{{end}}"> {{range .PackageDescriptors}} <li class="item gt-df gt-py-3"> - <div class="issue-item-main gt-f1 gt-fc gt-df"> + <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 gt-df gt-ac gt-fw gt-my-1"> + <div class="desc issue-item-bottom-row"> {{$timeStr := TimeSinceUnix .Version.CreatedUnix $.locale}} {{$hasRepositoryAccess := false}} {{if .Repository}} diff --git a/templates/package/shared/versionlist.tmpl b/templates/package/shared/versionlist.tmpl index ba488586a8..fa54372230 100644 --- a/templates/package/shared/versionlist.tmpl +++ b/templates/package/shared/versionlist.tmpl @@ -22,11 +22,11 @@ <div class="ui {{if .PackageDescriptors}}issue list{{end}}"> {{range .PackageDescriptors}} <li class="item gt-df gt-py-3"> - <div class="issue-item-main gt-f1 gt-fc gt-df"> + <div class="issue-item-main"> <div class="issue-item-top-row"> <a class="title" href="{{.FullWebLink}}">{{.Version.LowerVersion}}</a> </div> - <div class="desc issue-item-bottom-row gt-df gt-ac gt-fw gt-my-1"> + <div class="desc issue-item-bottom-row"> {{$.locale.Tr "packages.published_by" (TimeSinceUnix .Version.CreatedUnix $.locale) .Creator.HomeLink (.Creator.GetDisplayName | Escape) | Safe}} </div> </div> |