gitea: Custom templates doesn't work

  • Gitea version (or commit ref): v1.0.0+34-gac51caa
  • Git version: 2.8.3
  • Operating system: Linux amd64
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Adding a custom template under custom/templates doesn’t work.

Thomas Boerger @tboerger 14:29 let me check the macaron renderer source looks like we need to implement a custom TemplateFileSystem because AppendDirectories gets ignored by the bindata based TemplateFileSystem from https://github.com/go-macaron/bindata

<bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40471993-custom-templates-doesn-t-work?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F47456670&utm_medium=issues&utm_source=github). </bountysource-plugin>

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (10 by maintainers)

Most upvoted comments

I will work on this within this week hopefully, but let’s stop backporting that.

Issue is still pending for builds with ‘bindata’ tag. The downloads from dl.gitea.io are of this kind (so broken).

I guess it would help to include the build tags in the version string as printed by some footers, btw.