mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-08 13:42:27 +05:30
Add config option for instance donation link
Co-authored-by: Arya K <arya@projectsegfau.lt>
This commit is contained in:
parent
2a85afe93f
commit
3fef552008
@ -453,6 +453,16 @@ jobs:
|
|||||||
##
|
##
|
||||||
# footer_instance_privacy_policy_link:
|
# footer_instance_privacy_policy_link:
|
||||||
|
|
||||||
|
##
|
||||||
|
## Instance donation URL. If your instance has a donation option.
|
||||||
|
## you can add it here so it will be present in the footer along
|
||||||
|
## with the donation link for the project itself.
|
||||||
|
##
|
||||||
|
## Accepted values: a string
|
||||||
|
## Default: <none>
|
||||||
|
##
|
||||||
|
#footer_instance_donate_link: ""
|
||||||
|
|
||||||
##
|
##
|
||||||
## Custom fields to be displayed within the footer's instance section
|
## Custom fields to be displayed within the footer's instance section
|
||||||
##
|
##
|
||||||
|
@ -480,6 +480,7 @@
|
|||||||
"footer_instance_section_modified_source_code": "Instance Source Code",
|
"footer_instance_section_modified_source_code": "Instance Source Code",
|
||||||
"footer_instance_section_tos": "Terms of Service",
|
"footer_instance_section_tos": "Terms of Service",
|
||||||
"footer_instance_section_privacy_policy": "Privacy Policy",
|
"footer_instance_section_privacy_policy": "Privacy Policy",
|
||||||
|
"footer_instance_section_donate": "Donate (Instance)",
|
||||||
"footer_licences_link": "Licences",
|
"footer_licences_link": "Licences",
|
||||||
"footer_privacy_policy_link": "Privacy",
|
"footer_privacy_policy_link": "Privacy",
|
||||||
"adminprefs_modified_source_code_url_label": "URL to modified source code repository",
|
"adminprefs_modified_source_code_url_label": "URL to modified source code repository",
|
||||||
|
@ -124,6 +124,8 @@ class Config
|
|||||||
property footer_instance_tos_link : String? = nil
|
property footer_instance_tos_link : String? = nil
|
||||||
# Link to the privacy policy of the instance (if any). Will be displayed in the footer.
|
# Link to the privacy policy of the instance (if any). Will be displayed in the footer.
|
||||||
property footer_instance_privacy_policy_link : String? = nil
|
property footer_instance_privacy_policy_link : String? = nil
|
||||||
|
# Instance donation URL displayed in the "Instance" section of the footer
|
||||||
|
property footer_instance_donate_link : String? = nil
|
||||||
# Custom fields to be displayed within the footer's instance section
|
# Custom fields to be displayed within the footer's instance section
|
||||||
property footer_instance_section_custom_fields : Array(Array(String)) = [] of Array(String)
|
property footer_instance_section_custom_fields : Array(Array(String)) = [] of Array(String)
|
||||||
|
|
||||||
|
@ -272,6 +272,14 @@
|
|||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<% if CONFIG.footer_instance_donate_link %>
|
||||||
|
<li class="pure-menu-item footer-section-item">
|
||||||
|
<a href="<%=HTML.escape(CONFIG.footer_instance_donate_link.not_nil!)%>" title="<%= translate(locale, "footer_instance_section_donate")%>">
|
||||||
|
<%= translate(locale, "footer_instance_section_donate") %>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<% CONFIG.footer_instance_section_custom_fields.each do | field | %>
|
<% CONFIG.footer_instance_section_custom_fields.each do | field | %>
|
||||||
<li class="pure-menu-item footer-section-item">
|
<li class="pure-menu-item footer-section-item">
|
||||||
<a href="<%=HTML.escape(field[1])%>" title="<%= HTML.escape(field[0]) %>">
|
<a href="<%=HTML.escape(field[1])%>" title="<%= HTML.escape(field[0]) %>">
|
||||||
|
Loading…
Reference in New Issue
Block a user