-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add more additional template snippets #3286
Conversation
LGTM |
@@ -130,9 +130,13 @@ | |||
{{template "custom/header" .}} | |||
</head> | |||
<body> | |||
{{template "custom/body_outer_pre" .}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
custom/templates/custom/
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bkcsoft just following the already existing templates custom/header.tmpl
and custom/footer.tmpl
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
root@dchi: ~
<o> # tree /var/lib/docker/volumes/demo_gitea/_data/templates
/var/lib/docker/volumes/demo_gitea/_data/templates
└── base
├── head.tmpl
├── head.tmpl.master
├── head.tmpl.new
└── head.tmpl.patch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG-TM doesn't update on approvals 😢 |
It updated? |
@tboerger only after commenting :( |
Codecov Report
@@ Coverage Diff @@
## master #3286 +/- ##
==========================================
+ Coverage 34.6% 34.82% +0.21%
==========================================
Files 277 277
Lines 40263 40263
==========================================
+ Hits 13935 14021 +86
+ Misses 24283 24183 -100
- Partials 2045 2059 +14
Continue to review full report at Codecov.
|
That way we are able to add additional custom temmplate content more easily. A good example is https://try.gitea.io where we place a notice at the top, currently we are overwriting the header template and we are lacking changes if the template gets updated.