mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:25:56 -04:00
add option for instance donations
This commit is contained in:
parent
d956b1826e
commit
d660a4c2cb
@ -496,6 +496,16 @@ hmac_key: "CHANGE_ME!!"
|
||||
##
|
||||
#modified_source_code_url: ""
|
||||
|
||||
##
|
||||
## 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>
|
||||
##
|
||||
#donate_url: ""
|
||||
|
||||
##
|
||||
## Maximum custom playlist length limit.
|
||||
##
|
||||
|
@ -453,7 +453,8 @@
|
||||
"next_steps_error_message": "After which you should try to: ",
|
||||
"next_steps_error_message_refresh": "Refresh",
|
||||
"next_steps_error_message_go_to_youtube": "Go to YouTube",
|
||||
"footer_donate_page": "Donate",
|
||||
"footer_donate_page": "Donate to Invidious",
|
||||
"footer_instance_donate_page": "Donate to the instance",
|
||||
"footer_documentation": "Documentation",
|
||||
"footer_source_code": "Source code",
|
||||
"footer_original_source_code": "Original source code",
|
||||
|
@ -116,6 +116,7 @@ class Config
|
||||
# URL to the modified source code to be easily AGPL compliant
|
||||
# Will display in the footer, next to the main source code link
|
||||
property modified_source_code_url : String? = nil
|
||||
property donate_url : String? = nil
|
||||
|
||||
# Connect to YouTube over 'ipv6', 'ipv4'. Will sometimes resolve fix issues with rate-limiting (see https://github.com/ytdl-org/youtube-dl/issues/21729)
|
||||
@[YAML::Field(converter: Preferences::FamilyConverter)]
|
||||
|
@ -150,6 +150,12 @@
|
||||
<i class="icon ion-ios-wallet"></i>
|
||||
<a href="https://invidious.io/donate/"><%= translate(locale, "footer_donate_page") %></a>
|
||||
</span>
|
||||
<% if CONFIG.donate_url %>
|
||||
<span>
|
||||
<i class="icon ion-ios-wallet"></i>
|
||||
<a href="<%= CONFIG.donate_url %>"><%= translate(locale, "footer_instance_donate_page") %></a>
|
||||
</span>
|
||||
<% end %>
|
||||
<span><%= translate(locale, "Current version: ") %> <%= CURRENT_VERSION %>-<%= CURRENT_COMMIT %> @ <%= CURRENT_BRANCH %></span>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user