mirror of
https://git.nerdvpn.de/NerdVPN.de/invidious
synced 2026-02-14 22:51:42 +01:00
39 lines
2.1 KiB
Diff
39 lines
2.1 KiB
Diff
diff --git a/src/invidious.cr b/src/invidious.cr
|
|
index 3804197e..0e051080 100644
|
|
--- a/src/invidious.cr
|
|
+++ b/src/invidious.cr
|
|
@@ -75,9 +75,9 @@ REQUEST_HEADERS_WHITELIST = {"accept", "accept-encoding", "cache-control", "con
|
|
RESPONSE_HEADERS_BLACKLIST = {"access-control-allow-origin", "alt-svc", "server"}
|
|
HTTP_CHUNK_SIZE = 10485760 # ~10MB
|
|
|
|
-CURRENT_BRANCH = {{ "#{`git branch | sed -n '/* /s///p'`.strip}" }}
|
|
+CURRENT_BRANCH = "nerdvpn"
|
|
CURRENT_COMMIT = {{ "#{`git rev-list HEAD --max-count=1 --abbrev-commit`.strip}" }}
|
|
-CURRENT_VERSION = {{ "#{`git log -1 --format=%ci | awk '{print $1}' | sed s/-/./g`.strip}" }}
|
|
+CURRENT_VERSION = {{ "#{`date +%Y.%m.%d`.strip}" }}
|
|
|
|
# This is used to determine the `?v=` on the end of file URLs (for cache busting). We
|
|
# only need to expire modified assets, so we can use this to find the last commit that changes
|
|
diff --git a/src/invidious/views/template.ecr b/src/invidious/views/template.ecr
|
|
index 9904b4fc..769ab1e2 100644
|
|
--- a/src/invidious/views/template.ecr
|
|
+++ b/src/invidious/views/template.ecr
|
|
@@ -142,12 +142,16 @@
|
|
<i class="icon ion-ios-paper"></i>
|
|
<a href="/privacy"><%= translate(locale, "View privacy policy.") %></a>
|
|
</span>
|
|
+ <span>
|
|
+ <i class="icon ion-ios-paper"></i>
|
|
+ <a href="https://nerdvpn.de/terms"><%= translate(locale, "View terms of use.") %></a>
|
|
+ </span>
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-md-1-3">
|
|
<span>
|
|
<i class="icon ion-ios-wallet"></i>
|
|
- <a href="https://invidious.io/donate/"><%= translate(locale, "footer_donate_page") %></a>
|
|
+ <a href="/donate/"><%= translate(locale, "footer_donate_page") %></a>
|
|
</span>
|
|
<span><%= translate(locale, "Current version: ") %> <%= CURRENT_VERSION %>-<%= CURRENT_COMMIT %> @ <%= CURRENT_BRANCH %></span>
|
|
</div>
|