forgejo/templates/user
Hester Gong 6793ef0069
Use secondary pointing menu for tabs on user/organization home page (#24162)
Close #24108

Use secondary pointing menu for tabs on user/organization home page so
the tabs look the same.
Main changes:
1. modified a part of dom structure in
`templates/user/overview/header.tmpl` to make it the same as
`templates/org/header.tmpl` in order to produce the same ui.
2. Move some css to `web_src/css/shared/repoorgshared.css` to make them
shareable between `templates/user/overview/header.tmpl` and
`templates/org/header.tmpl`

After:


https://user-images.githubusercontent.com/17645053/232400617-2add5bec-d483-4ab1-b48d-eaee157f7b09.mov

For further improvements. Need some thoughts: 

For [this
TODO](729ad294cb/templates/user/overview/header.tmpl (L1)),
it is viable to make it a shared template for [this
part](729ad294cb/templates/user/overview/header.tmpl (L2-L17))
and [this
part](729ad294cb/templates/org/header.tmpl (L1-L16))
because they are the same except for the variable. But for the menu
parts, they are quite different so might not be suitable to use a shared
template. So need some thoughts and advice about extracting the shared
template from these two headers.

---------

Co-authored-by: Giteabot <teabot@gitea.io>
2023-04-20 04:58:26 -04:00
..
auth Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
dashboard Fix wrong scopes of locale.PrettyNumber (#24181) 2023-04-18 19:26:57 +08:00
notification Merge template functions "dict/Dict/mergeinto" (#23932) 2023-04-07 09:39:08 -05:00
overview Use secondary pointing menu for tabs on user/organization home page (#24162) 2023-04-20 04:58:26 -04:00
settings Add tooltips to Hide comment type settings where necessary (#21306) 2023-04-12 19:59:17 +08:00
code.tmpl Add main landmark to templates and adjust titles (#22670) 2023-02-01 22:56:10 +00:00
heatmap.tmpl Localize activity heatmap (except tooltip) (#24131) 2023-04-17 14:26:01 -04:00
profile.tmpl Add repository counter badge to repository tab (#24205) 2023-04-19 14:58:36 -04:00
project.tmpl Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00