diff options
| author | meow <woem> | 2022-06-05 21:19:59 +0300 |
|---|---|---|
| committer | meow <woem> | 2022-06-05 21:19:59 +0300 |
| commit | a402128a7d4a2d3dccbeeb553e5363447f501a37 (patch) | |
| tree | 419915e2101880503e3eaa3efbf31f4a359b844a /src | |
| parent | d3ab4a51457ee2f0596db8c2a735ef220105dea8 (diff) | |
| download | invidious-a402128a7d4a2d3dccbeeb553e5363447f501a37.tar.gz invidious-a402128a7d4a2d3dccbeeb553e5363447f501a37.tar.bz2 invidious-a402128a7d4a2d3dccbeeb553e5363447f501a37.zip | |
Move `_helpers.js` include from various .ecr's into `template.ecr` `head` tag
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/views/add_playlist_items.ecr | 1 | ||||
| -rw-r--r-- | src/invidious/views/community.ecr | 1 | ||||
| -rw-r--r-- | src/invidious/views/components/player.ecr | 1 | ||||
| -rw-r--r-- | src/invidious/views/components/subscribe_widget.ecr | 1 | ||||
| -rw-r--r-- | src/invidious/views/embed.ecr | 1 | ||||
| -rw-r--r-- | src/invidious/views/feeds/history.ecr | 1 | ||||
| -rw-r--r-- | src/invidious/views/feeds/subscriptions.ecr | 1 | ||||
| -rw-r--r-- | src/invidious/views/playlist.ecr | 1 | ||||
| -rw-r--r-- | src/invidious/views/template.ecr | 2 | ||||
| -rw-r--r-- | src/invidious/views/watch.ecr | 2 |
10 files changed, 1 insertions, 11 deletions
diff --git a/src/invidious/views/add_playlist_items.ecr b/src/invidious/views/add_playlist_items.ecr index 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.ecr index 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.ecr index 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.ecr index 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.ecr index 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.ecr index 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.ecr index 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.ecr index 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.ecr index 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.ecr index 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> |
