diff options
author | Denys Konovalov <kontakt@denyskon.de> | 2023-07-09 21:38:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-09 19:38:01 +0000 |
commit | be23b73e8523738a1d3c214a01c0f162146da1c0 (patch) | |
tree | b80a3083cbe4c02ef9323f504d9b1d2af6211b3e /templates/package | |
parent | 84c78650cc2d7c6480f397d59e1d4e33a5f71d19 (diff) | |
download | gitea-be23b73e8523738a1d3c214a01c0f162146da1c0.tar.gz gitea-be23b73e8523738a1d3c214a01c0f162146da1c0.zip |
Restructure issue list template, styles (#25750)
This PR does various modifications on the issue list shared template:
- restructure layout to achieve better responsiveness
- fix various style issues
- restructure styles (better result with less code :)
- remove numerous `gt-*` patches and other unneeded classes -> use
existing css classes
<details>
<summary>Before:</summary>
![Bildschirmfoto vom 2023-07-07
14-35-00](https://github.com/go-gitea/gitea/assets/47871822/5301fc80-d58b-41c2-8090-5867e2e8459c)
![Bildschirmfoto vom 2023-07-07
14-35-19](https://github.com/go-gitea/gitea/assets/47871822/d36ab691-7dc4-44bb-a8f6-a4105a2a6777)
![Bildschirmfoto vom 2023-07-07
14-35-43](https://github.com/go-gitea/gitea/assets/47871822/0762c852-eb40-4b00-8757-c5dbfd2ae569)
</details>
<details>
<summary>After:</summary>
![Bildschirmfoto vom 2023-07-07
14-32-04](https://github.com/go-gitea/gitea/assets/47871822/0ac42d36-f98f-451a-b556-70c913d19df8)
![Bildschirmfoto vom 2023-07-07
14-31-32](https://github.com/go-gitea/gitea/assets/47871822/520fac9c-33e3-4290-bfe1-6e941f1100f8)
![Bildschirmfoto vom 2023-07-07
14-31-14](https://github.com/go-gitea/gitea/assets/47871822/05ad46bb-3c67-403d-85b8-d12d64f99c59)
</details>
---------
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'templates/package')
-rw-r--r-- | templates/package/shared/list.tmpl | 6 | ||||
-rw-r--r-- | templates/package/shared/versionlist.tmpl | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/templates/package/shared/list.tmpl b/templates/package/shared/list.tmpl index b2f339285f..79a2d885fb 100644 --- a/templates/package/shared/list.tmpl +++ b/templates/package/shared/list.tmpl @@ -14,13 +14,13 @@ </form> <div class="ui {{if .PackageDescriptors}}issue list{{end}}"> {{range .PackageDescriptors}} - <li class="item gt-df gt-py-3"> + <li class="item"> <div class="issue-item-main"> - <div class="issue-item-top-row"> + <div class="issue-item-title"> <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"> + <div class="issue-item-body"> {{$timeStr := TimeSinceUnix .Version.CreatedUnix $.locale}} {{$hasRepositoryAccess := false}} {{if .Repository}} diff --git a/templates/package/shared/versionlist.tmpl b/templates/package/shared/versionlist.tmpl index afd92efff9..feba8ef145 100644 --- a/templates/package/shared/versionlist.tmpl +++ b/templates/package/shared/versionlist.tmpl @@ -20,12 +20,12 @@ </form> <div class="ui {{if .PackageDescriptors}}issue list{{end}}"> {{range .PackageDescriptors}} - <li class="item gt-df gt-py-3"> + <li class="item"> <div class="issue-item-main"> - <div class="issue-item-top-row"> + <div class="issue-item-title"> <a class="title" href="{{.FullWebLink}}">{{.Version.LowerVersion}}</a> </div> - <div class="desc issue-item-bottom-row"> + <div class="issue-item-body"> {{$.locale.Tr "packages.published_by" (TimeSinceUnix .Version.CreatedUnix $.locale) .Creator.HomeLink (.Creator.GetDisplayName | Escape) | Safe}} </div> </div> |