Invidious is an alternative front-end to YouTube
Move `_helpers.js` include from various .ecr's into `template.ecr` `head` tag
meowa402128a7d4a
diff --git a/src/invidious/views/add_playlist_items.ecr b/src/invidious/views/add_playlist_items.ecrindex 758f3995..22870317 100644--- a/src/invidious/views/add_playlist_items.ecr+++ b/src/invidious/views/add_playlist_items.ecr@@ -29,7 +29,6 @@}.to_pretty_json%></script>-<script src="/js/_helpers.js?v=<%= ASSET_COMMIT %>"></script><script src="/js/playlist_widget.js?v=<%= ASSET_COMMIT %>"></script><div class="pure-g">diff --git a/src/invidious/views/community.ecr b/src/invidious/views/community.ecrindex 154c40b5..3bc29e55 100644--- a/src/invidious/views/community.ecr+++ b/src/invidious/views/community.ecr@@ -93,5 +93,4 @@}.to_pretty_json%></script>-<script src="/js/_helpers.js?v=<%= ASSET_COMMIT %>"></script><script src="/js/community.js?v=<%= ASSET_COMMIT %>"></script>diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecrindex 483807d7..fffefc9a 100644--- a/src/invidious/views/components/player.ecr+++ b/src/invidious/views/components/player.ecr@@ -66,5 +66,4 @@}.to_pretty_json%></script>-<script src="/js/_helpers.js?v=<%= ASSET_COMMIT %>"></script><script src="/js/player.js?v=<%= ASSET_COMMIT %>"></script>diff --git a/src/invidious/views/components/subscribe_widget.ecr b/src/invidious/views/components/subscribe_widget.ecrindex 7a8c7fda..b9d5f783 100644--- a/src/invidious/views/components/subscribe_widget.ecr+++ b/src/invidious/views/components/subscribe_widget.ecr@@ -31,7 +31,6 @@}.to_pretty_json%></script>- <script src="/js/_helpers.js?v=<%= ASSET_COMMIT %>"></script><script src="/js/subscribe_widget.js?v=<%= ASSET_COMMIT %>"></script><% else %><p>diff --git a/src/invidious/views/embed.ecr b/src/invidious/views/embed.ecrindex 82f80f9d..ce5ff7f0 100644--- a/src/invidious/views/embed.ecr+++ b/src/invidious/views/embed.ecr@@ -31,7 +31,6 @@</script><%= rendered "components/player" %>-<script src="/js/_helpers.js?v=<%= ASSET_COMMIT %>"></script><script src="/js/embed.js?v=<%= ASSET_COMMIT %>"></script></body></html>diff --git a/src/invidious/views/feeds/history.ecr b/src/invidious/views/feeds/history.ecrindex 51dd78bd..6c1243c5 100644--- a/src/invidious/views/feeds/history.ecr+++ b/src/invidious/views/feeds/history.ecr@@ -25,7 +25,6 @@}.to_pretty_json%></script>-<script src="/js/_helpers.js?v=<%= ASSET_COMMIT %>"></script><script src="/js/watched_widget.js"></script><div class="pure-g">diff --git a/src/invidious/views/feeds/subscriptions.ecr b/src/invidious/views/feeds/subscriptions.ecrindex 957277fa..8d56ad14 100644--- a/src/invidious/views/feeds/subscriptions.ecr+++ b/src/invidious/views/feeds/subscriptions.ecr@@ -50,7 +50,6 @@}.to_pretty_json%></script>-<script src="/js/_helpers.js?v=<%= ASSET_COMMIT %>"></script><script src="/js/watched_widget.js"></script><div class="pure-g">diff --git a/src/invidious/views/playlist.ecr b/src/invidious/views/playlist.ecrindex 641cbe2c..df3112db 100644--- a/src/invidious/views/playlist.ecr+++ b/src/invidious/views/playlist.ecr@@ -97,7 +97,6 @@}.to_pretty_json%></script>-<script src="/js/_helpers.js?v=<%= ASSET_COMMIT %>"></script><script src="/js/playlist_widget.js?v=<%= ASSET_COMMIT %>"></script><% end %>diff --git a/src/invidious/views/template.ecr b/src/invidious/views/template.ecrindex 79decbe6..4e2b29f0 100644--- a/src/invidious/views/template.ecr+++ b/src/invidious/views/template.ecr@@ -17,6 +17,7 @@<link rel="stylesheet" href="/css/grids-responsive-min.css?v=<%= ASSET_COMMIT %>"><link rel="stylesheet" href="/css/ionicons.min.css?v=<%= ASSET_COMMIT %>"><link rel="stylesheet" href="/css/default.css?v=<%= ASSET_COMMIT %>">+ <script src="/js/_helpers.js?v=<%= ASSET_COMMIT %>"></script></head><%@@ -157,7 +158,6 @@</div><div class="pure-u-1 pure-u-md-2-24"></div></div>- <script src="/js/_helpers.js?v=<%= ASSET_COMMIT %>"></script><script src="/js/handlers.js?v=<%= ASSET_COMMIT %>"></script><script src="/js/themes.js?v=<%= ASSET_COMMIT %>"></script><% if env.get? "user" %>diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecrindex f2d8ba03..861b2048 100644--- a/src/invidious/views/watch.ecr+++ b/src/invidious/views/watch.ecr@@ -165,7 +165,6 @@ we're going to need to do it here in order to allow for translations.}.to_pretty_json%></script>- <script src="/js/_helpers.js?v=<%= ASSET_COMMIT %>"></script><script src="/js/playlist_widget.js?v=<%= Time.utc.to_unix_ms %>"></script><% end %><% end %>@@ -304,5 +303,4 @@ we're going to need to do it here in order to allow for translations.</div><% end %></div>-<script src="/js/_helpers.js?v=<%= ASSET_COMMIT %>"></script><script src="/js/watch.js?v=<%= ASSET_COMMIT %>"></script>