-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature suggestion: default custom template for dashboard info display #10870
Comments
We could add some empty templates in some specific pages, like dashboard, new issue/PR, etc. for this kind of job. Also a good place to do that would be in mail footers. I don't think that would add too much overhead; IIRC templates are loaded on startup, even the custom ones. |
yeah, I've had to restart gitea every time I change templates, so I'm under that impression as well. and I love the idea of having a dedicated info space on every major page we can adjust with a builtin custom template. more places to easily customize without having to track the upstream templates is better! :) |
IMO it would be better to fully enclose all the current sections of the dashboard in their own templates so people can easily create their own dashboard template without falling behind important upstream changes (So think of it like having blocks you can build with) So you'd be able to create your own dashboard page easily like <template/navbar> And not really fall behind upstream because any important changes would take place within those template files. It is actually already about 50% like this, with navbar and feeds being in their own file. If Heatmap and repo list moved into their own file it could probably easily work that way. This would fix the issue of templates being annoying to use because they fall out of sync/don't get updates and also provide more flexibility because you could easily arrange a dashboard page any way you want, add multiple sections, etc.. |
@mrsdizzie love it, even better! |
No code change just Move Heatmap and Repo list/search into separate template files (like feeds and navbar already are). This will let a user more easily replace dashboard.tmpl without regularly becoming out of sync with fixes or changes to the actual code. Fixes go-gitea#10870
* Split dashboard elements into separate template files No code change just Move Heatmap and Repo list/search into separate template files (like feeds and navbar already are). This will let a user more easily replace dashboard.tmpl without regularly becoming out of sync with fixes or changes to the actual code. Fixes #10870 * End file with an empty line Co-authored-by: zeripath <[email protected]>
@nergdron if you set |
[x]
):Description
loving gitea so far, very happy to be switching over to it from commercial hosting. something I'd like to see is a default custom template which gets loaded into the user's dashboard view by the default templates, like
extra_links.tmpl
or similar. I'd use it for displaying things like system info and help, other integrated js features, or just a fun graphic for users. would really help me expose the customizations (like mermaid) that I've done to the server so users are aware of them.adding it to the upstream template would be good because then I'm not copying the whole
dashboard.tmpl
and editing it, which could cause me to lose upstream changes to that template as you guys do further development. I'd rather have a location on that page I can just update independently and know it'll always show up on the dashboard, but I'll still get other upstream improvements.I was thinking a good location would be under the right repo / org bar, as that typically has lots of free space vs the history list on the left.
Screenshots
The text was updated successfully, but these errors were encountered: