diff --git a/defaults/main.yml b/defaults/main.yml index 7b74b18..a9c4059 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/templates/custom/conf/app.ini.j2 b/templates/custom/conf/app.ini.j2 index e57a88a..0c1c983 100644 --- a/templates/custom/conf/app.ini.j2 +++ b/templates/custom/conf/app.ini.j2 @@ -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 diff --git a/templates/custom/templates/custom/extra_links_footer.tmpl.j2 b/templates/custom/templates/custom/extra_links_footer.tmpl.j2 new file mode 100644 index 0000000..6bb7e13 --- /dev/null +++ b/templates/custom/templates/custom/extra_links_footer.tmpl.j2 @@ -0,0 +1,4 @@ +#jinja2: lstrip_blocks: True +{% for link in gitea_footer_custom_links %} +{{ item.name }} +{% endfor %}