Feature request: Template editor #3066

Closed
opened 2025-11-02 04:59:34 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @elaine-jackson on GitHub (Mar 18, 2019).

Unlike people who install from source, docker-compose users do not have a way to edit their templates (e.g. the german impressum, custom front page, etc). It'd be nice to have a simple template editor in the admin panel or even having templates accessible to compose users as another sort of config file. Thoughts?

Originally created by @elaine-jackson on GitHub (Mar 18, 2019). Unlike people who install from source, docker-compose users do not have a way to edit their templates (e.g. the german impressum, custom front page, etc). It'd be nice to have a simple template editor in the admin panel or even having templates accessible to compose users as another sort of config file. Thoughts?
GiteaMirror added the type/proposal label 2025-11-02 04:59:34 -06:00
Author
Owner

@apricote commented on GitHub (Mar 18, 2019):

(Using the docker-compose from the Docs)

The custom folder referenced in the "Customization" docs page is located at /data/gitea inside the offical Docker image: 96f1720d69/Dockerfile (L52)

The offical docker-compose file mounts the local folder ./gitea to /data:

96f1720d69/docs/content/doc/installation/with-docker.en-us.md (L52-L53)

That means you can place the templates in the local folder ./gitea/gitea/templates/footer.tmpl (inside the container this file will have the path /data/gitea/templates/footer.tmpl)


That said, your feature request for a Template Editor is still valid.

@apricote commented on GitHub (Mar 18, 2019): (Using the `docker-compose` from the Docs) The `custom` folder referenced in the "Customization" docs page is located at `/data/gitea` inside the offical Docker image: https://github.com/go-gitea/gitea/blob/96f1720d6907abd16641881d8f75177810ca29b2/Dockerfile#L52 The offical docker-compose file mounts the local folder `./gitea` to `/data`: https://github.com/go-gitea/gitea/blob/96f1720d6907abd16641881d8f75177810ca29b2/docs/content/doc/installation/with-docker.en-us.md#L52-L53 That means you can place the templates in the local folder `./gitea/gitea/templates/footer.tmpl` (inside the container this file will have the path `/data/gitea/templates/footer.tmpl`) * https://docs.gitea.io/en-us/install-with-docker/ * https://docs.gitea.io/en-us/customizing-gitea/ --- That said, your feature request for a Template Editor is still valid.
Author
Owner

@elaine-jackson commented on GitHub (Apr 12, 2022):

Did this change? Is it no longer valid or closed to inactivity?

@elaine-jackson commented on GitHub (Apr 12, 2022): Did this change? Is it no longer valid or closed to inactivity?
Author
Owner

@techknowlogick commented on GitHub (Apr 13, 2022):

Closed as templates can be changed for docker, and as for legal pages such as you mentioned we have a specific document https://docs.gitea.io/en-us/adding-legal-pages/ this what codeberg.org is doing

@techknowlogick commented on GitHub (Apr 13, 2022): Closed as templates can be changed for docker, and as for legal pages such as you mentioned we have a specific document https://docs.gitea.io/en-us/adding-legal-pages/ this what codeberg.org is doing
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3066