add ability for custom footer links
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e0072f7679
commit
152e84720f
|
@ -227,9 +227,18 @@ gitea_api_swagger_enabled: True
|
|||
gitea_api_default_paging_num: 30
|
||||
gitea_api_default_git_trees_per_page: 1000
|
||||
|
||||
gitea_show_footer_branding: False
|
||||
gitea_show_footer_version: False
|
||||
gitea_show_footer_template_load_time: False
|
||||
gitea_footer_show_branding: False
|
||||
gitea_footer_show_version: False
|
||||
gitea_footer_show_template_load_time: False
|
||||
# @var gitea_footer_custom_links:description: >
|
||||
# Add custom links e.g. legal notice to gitea footer.
|
||||
# @end
|
||||
# @var gitea_footer_custom_links:example: >
|
||||
# gitea_footer_custom_links:
|
||||
# - name: Legal Notice
|
||||
# href: https://example.com/legal_notice
|
||||
# @end
|
||||
gitea_footer_custom_links: []
|
||||
|
||||
gitea_oauth_provider_enabled: False
|
||||
gitea_access_token_expiration_time: 3600
|
||||
|
|
|
@ -270,9 +270,9 @@ ENABLE = false
|
|||
{% endif %}
|
||||
|
||||
[other]
|
||||
SHOW_FOOTER_BRANDING = {{ gitea_show_footer_branding | bool }}
|
||||
SHOW_FOOTER_VERSION = {{ gitea_show_footer_version | bool }}
|
||||
SHOW_FOOTER_TEMPLATE_LOAD_TIME = {{ gitea_show_footer_template_load_time | bool }}
|
||||
SHOW_FOOTER_BRANDING = {{ gitea_footer_show_branding | bool }}
|
||||
SHOW_FOOTER_VERSION = {{ gitea_footer_show_version | bool }}
|
||||
SHOW_FOOTER_TEMPLATE_LOAD_TIME = {{ gitea_footer_show_template_load_time | bool }}
|
||||
|
||||
[markup.asciidoc]
|
||||
ENABLED = false
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#jinja2: lstrip_blocks: True
|
||||
{% for link in gitea_footer_custom_links %}
|
||||
<a class="item" href="{{ link.href }}">{{ item.name }}</a>
|
||||
{% endfor %}
|
Loading…
Reference in New Issue
Block a user