[PR #4797] [MERGED] Extract header and footer content to separate templates #17499

Closed
opened 2025-11-02 13:41:48 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4797
Author: @lukasbestle
Created: 8/26/2018
Status: Merged
Merged: 9/7/2018
Merged by: @lunny

Base: masterHead: template-customization


📝 Commits (4)

  • b921f2b Extract header and footer content to separate tmpl
  • d63813f Merge branch 'master' into template-customization
  • 193060d Merge branch 'master' into template-customization
  • 5ce4e13 Merge branch 'master' into template-customization

📊 Changes

4 files changed (+162 additions, -159 deletions)

View changed files

📝 templates/base/footer.tmpl (+2 -25)
templates/base/footer_content.tmpl (+25 -0)
📝 templates/base/head.tmpl (+1 -134)
templates/base/head_navbar.tmpl (+134 -0)

📄 Description

This change makes it easier to customize the header and footer content. Before this change, the whole header and footer had to be overridden, including the meta, style and script tags.

Apart from moving the code to separate files, there are no other changes to the templates in this PR.


🔄 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/4797 **Author:** [@lukasbestle](https://github.com/lukasbestle) **Created:** 8/26/2018 **Status:** ✅ Merged **Merged:** 9/7/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `template-customization` --- ### 📝 Commits (4) - [`b921f2b`](https://github.com/go-gitea/gitea/commit/b921f2b3ecdaa9423cdf502f1e6a3b62058d51f4) Extract header and footer content to separate tmpl - [`d63813f`](https://github.com/go-gitea/gitea/commit/d63813fb209964fe17da4845ab85b6c6c7e8aa49) Merge branch 'master' into template-customization - [`193060d`](https://github.com/go-gitea/gitea/commit/193060db3c3392ad5ef3bedb99fdf948fab87d4f) Merge branch 'master' into template-customization - [`5ce4e13`](https://github.com/go-gitea/gitea/commit/5ce4e13972a23a6e446e6556e2625cd7d07998fe) Merge branch 'master' into template-customization ### 📊 Changes **4 files changed** (+162 additions, -159 deletions) <details> <summary>View changed files</summary> 📝 `templates/base/footer.tmpl` (+2 -25) ➕ `templates/base/footer_content.tmpl` (+25 -0) 📝 `templates/base/head.tmpl` (+1 -134) ➕ `templates/base/head_navbar.tmpl` (+134 -0) </details> ### 📄 Description This change makes it easier to customize the header and footer content. Before this change, the whole header and footer had to be overridden, including the meta, style and script tags. Apart from moving the code to separate files, there are no other changes to the templates in this PR. --- <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 13:41:53 -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#17499