Skip to content

Note that all template directories are relative to the CustomPath configuration, not a custom directory inside it #14399

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

Merged
merged 3 commits into from
Jan 19, 2021

Conversation

RealOrangeOne
Copy link
Contributor

This is a minor clarification, which makes locating where the templates need to be much easier.

It took me a while to realise that the templates directory had to be /data/gitea/templates rather than /data/gitea/custom/templates. Referring to the custom directory as custom in the examples lead to this confusion, so I replaced it with CustomPath, which looks more like a variable, as defined at the top of the page. This could be replaced with $GITEA_CUSTOM, which is IMO clearer, but less accurate, as that variable isn't used often.

…onfiguration, not a `custom` directory inside it.

This is a minor clarification, which makes locating where the templates need to be much easier
@codecov-io
Copy link

codecov-io commented Jan 19, 2021

Codecov Report

Merging #14399 (72e617e) into master (0c0445c) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #14399   +/-   ##
=======================================
  Coverage   41.84%   41.85%           
=======================================
  Files         744      744           
  Lines       79779    79779           
=======================================
+ Hits        33387    33394    +7     
- Misses      40874    40876    +2     
+ Partials     5518     5509    -9     
Impacted Files Coverage Δ
modules/indexer/stats/db.go 48.00% <0.00%> (-8.00%) ⬇️
modules/process/manager.go 72.50% <0.00%> (-2.50%) ⬇️
services/mailer/mail.go 60.21% <0.00%> (-1.08%) ⬇️
modules/log/event.go 58.96% <0.00%> (-0.95%) ⬇️
modules/notification/mail/mail.go 38.88% <0.00%> (ø)
models/error.go 39.31% <0.00%> (+0.32%) ⬆️
models/repo_list.go 78.76% <0.00%> (+0.88%) ⬆️
models/notification.go 67.24% <0.00%> (+0.98%) ⬆️
modules/queue/unique_queue_disk_channel.go 55.38% <0.00%> (+1.53%) ⬆️
modules/notification/ui/ui.go 64.81% <0.00%> (+1.85%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0c0445c...72e617e. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 19, 2021
@lunny lunny added the type/docs This PR mainly updates/creates documentation label Jan 19, 2021
@6543
Copy link
Member

6543 commented Jan 19, 2021

I would prefere $GITEA_CUSTOM now it looks like a typo ...

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jan 19, 2021
It's more obvious it's a variable and not a typo
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jan 19, 2021
@techknowlogick techknowlogick merged commit e05670d into go-gitea:master Jan 19, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Mar 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants