Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Gitea
  3. Gitea Theme Loading + Template Customization

Gitea Theme Loading + Template Customization

Scheduled Pinned Locked Moved Unsolved Gitea
2 Posts 2 Posters 8.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    benjifrank
    wrote on last edited by
    #1

    Loving Cloudron! Thank you for this! Having trouble with Git customization though and struggled for many hours today with it ...

    Issue summary

    Issues with:
    1-Successfully load a custom theme⚠️
    2-Successfully load custom templates. ⚠️
    3-The app.ini works fine ✅👍 when I make an edit and reload Gitea via Cloudron's file manager but I can't get the others two things to go.

    My efforts with theme

    I tried dropping a CSS file call "theme-gitea-modern.css" and "modern.css" in the custom directory and also both those files in the "custom/public" directory and then I also add the names "modern" and "gitea-modern" at the end of the themes variable inside app.ini so that my app.ini looks like this THEMES = auto,gitea,arc-green,gitea-modern,modern .... just trying to cover all the possibiliies. But it still didn't work.

    I am wondering if custom directory is being properly set by Cloudron still? Or maybe I need to chang anything else in app.ini? The Cloudron doc section this is pretty short. Also ...

    Efforts with template

    1. Added some .tmpl files found on github in the custom directory to the custom directory in Cloudron's file manager
    2. Rebooted Gitea
    3. Result = Don't see the same html appearing in Gitea HTML output

    Where I put the files.
    Screen Shot 2023-11-16 at 10.24.36 PM.png

    Thank you!

    Any input or help is greatly appreciated.

    1 Reply Last reply
    1
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @benjifrank The location of css assets have changed. It is now in CUSTOM/public/assets/css (starting from 1.21.0 it seems). The templates are also not into custom directly , but into templates/base it seems. Not 100% sure but it seems like that unlikes color themes, there can only be 1 template (?) because the template names don't have a theme prefix....

      Anyway, so, my directory structure is like this:

      root@fd219d58-a046-4087-910f-ffca7d16dfee:/app/data/custom# find .
      .
      ./templates
      ./templates/base
      ./public
      ./public/assets
      ./public/assets/img
      ./public/assets/css
      ./public/assets/css/theme-arc-red.css
      

      I put this in my app.ini:

      
      [ui]
      THEMES = gitea-auto,gitea-light,gitea-dark,arc-red
      DEFAULT_THEME = arc-red
      

      Restarted the app.

      And then I do red color scrollbars etc.

      1 Reply Last reply
      2
      • nebulonN nebulon moved this topic from Off-topic on
      • B benjifrank marked this topic as a question on
      • B benjifrank marked this topic as a regular topic on
      • B benjifrank marked this topic as a question on
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Bookmarks
      • Search