[PR #3286] [MERGED] Add more additional template snippets #16862

Closed
opened 2025-11-02 12:20:49 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3286
Author: @tboerger
Created: 1/2/2018
Status: Merged
Merged: 1/2/2018
Merged by: @bkcsoft

Base: masterHead: additional-template-snippets


📝 Commits (1)

  • 88587af Add more additional template snippets

📊 Changes

6 files changed (+10 additions, -0 deletions)

View changed files

📝 templates/base/footer.tmpl (+6 -0)
📝 templates/base/head.tmpl (+4 -0)
templates/custom/body_inner_post.tmpl (+0 -0)
templates/custom/body_inner_pre.tmpl (+0 -0)
templates/custom/body_outer_post.tmpl (+0 -0)
templates/custom/body_outer_pre.tmpl (+0 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/3286 **Author:** [@tboerger](https://github.com/tboerger) **Created:** 1/2/2018 **Status:** ✅ Merged **Merged:** 1/2/2018 **Merged by:** [@bkcsoft](https://github.com/bkcsoft) **Base:** `master` ← **Head:** `additional-template-snippets` --- ### 📝 Commits (1) - [`88587af`](https://github.com/go-gitea/gitea/commit/88587af0fc9708f4cc1c4d0368a086f39a634329) Add more additional template snippets ### 📊 Changes **6 files changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `templates/base/footer.tmpl` (+6 -0) 📝 `templates/base/head.tmpl` (+4 -0) ➕ `templates/custom/body_inner_post.tmpl` (+0 -0) ➕ `templates/custom/body_inner_pre.tmpl` (+0 -0) ➕ `templates/custom/body_outer_post.tmpl` (+0 -0) ➕ `templates/custom/body_outer_pre.tmpl` (+0 -0) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:20:49 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16862