mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-14 09:05:09 +00:00
Add config option for instance donation link
Co-authored-by: Arya K <arya@projectsegfau.lt>
This commit is contained in:
@@ -124,6 +124,8 @@ class Config
|
||||
property footer_instance_tos_link : String? = nil
|
||||
# Link to the privacy policy of the instance (if any). Will be displayed in the footer.
|
||||
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
|
||||
property footer_instance_section_custom_fields : Array(Array(String)) = [] of Array(String)
|
||||
|
||||
|
||||
@@ -272,6 +272,14 @@
|
||||
</li>
|
||||
<% 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 | %>
|
||||
<li class="pure-menu-item footer-section-item">
|
||||
<a href="<%=HTML.escape(field[1])%>" title="<%= HTML.escape(field[0]) %>">
|
||||
|
||||
Reference in New Issue
Block a user