Last modified: Sep 8, 2021

Gitea

How to customize and configure Gitea.

Gitea is used for version control of the apps developed in Altinn Studio.

Customize

The documentation on how to customize Gitea can be found here.

Templates

The user interface of Gitea can be customized to match your application needs. You can copy the templates from Gitea’s GitHub.

For example the default login page looks like this

Gitea default login
Default login

It’s customized to look like this

Customized Gitea login
Customized login

Follow these steps to change any user interface of Gitea. Here example is given for login:

  1. Copy the login template from Gitea’s GitHub
  2. Paste it in your application in the same folder structure as Gitea.
  3. Edit the file. You can change the html tags and introduce new CSS or add new text or image without affecting the logic.
  4. Update the Docker image to use these templates.

Now, the new login template will be taken in use.