Rename option 'source_code_url' to 'modified_source_code_url'

This commit is contained in:
Samantaz Fox 2021-10-03 22:02:07 +02:00
parent daf0128794
commit aada4603a8
No known key found for this signature in database
GPG Key ID: F42821059186176E
3 changed files with 4 additions and 4 deletions

View File

@ -439,7 +439,7 @@ feed_threads: 1
## Accepted values: a string
## Default: <none>
##
#source_code_url: ""
#modified_source_code_url: ""

View File

@ -99,7 +99,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 source_code_url : String? = nil
property modified_source_code_url : String? = nil
@[YAML::Field(converter: Preferences::FamilyConverter)]
property force_resolve : Socket::Family = Socket::Family::UNSPEC # Connect to YouTube over 'ipv6', 'ipv4'. Will sometimes resolve fix issues with rate-limiting (see https://github.com/ytdl-org/youtube-dl/issues/21729)

View File

@ -119,9 +119,9 @@
<div class="pure-u-1 pure-u-md-1-3">
<span>
<i class="icon ion-logo-github"></i>
<% if CONFIG.source_code_url %>
<% if CONFIG.modified_source_code_url %>
<a href="https://github.com/iv-org/invidious"><%= translate(locale, "footer_original_source_code") %></a>&nbsp;/
<a href="<%= CONFIG.source_code_url %>"><%= translate(locale, "footer_modfied_source_code") %></a>
<a href="<%= CONFIG.modified_source_code_url %>"><%= translate(locale, "footer_modfied_source_code") %></a>
<% else %>
<a href="https://github.com/iv-org/invidious"><%= translate(locale, "footer_source_code") %></a>
<% end %>