mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-18 07:12:20 +00:00
4b494d341f
Unify organizations header before: ![image](https://github.com/go-gitea/gitea/assets/72873130/74474e0d-33c3-4bbf-9324-d130ea2c62f8) after: ![image](https://github.com/go-gitea/gitea/assets/72873130/1c65de0d-fa0f-4b17-ab8d-067de8c7113b) --------- Co-authored-by: silverwind <me@silverwind.io> (cherry picked from commit 532e422027c88a4a3dc0c2968857f8d5f94d861f) Conflicts: routers/web/shared/user/header.go templates/org/home.tmpl context
26 lines
765 B
Go HTML Template
26 lines
765 B
Go HTML Template
{{template "base/head" .}}
|
|
{{if .ContextUser.IsOrganization}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content organization packages">
|
|
{{template "org/header" .}}
|
|
<div class="ui container">
|
|
{{template "package/shared/list" .}}
|
|
</div>
|
|
</div>
|
|
{{else}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content user profile packages">
|
|
<div class="ui container">
|
|
<div class="ui stackable grid">
|
|
<div class="ui four wide column">
|
|
{{template "shared/user/profile_big_avatar" .}}
|
|
</div>
|
|
<div class="ui twelve wide column">
|
|
<div class="gt-mb-4">
|
|
{{template "user/overview/header" .}}
|
|
</div>
|
|
{{template "package/shared/list" .}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
{{template "base/footer" .}}
|