Move _helpers.js include from various .ecr's into template.ecr head tag

This commit is contained in:
meow 2022-06-05 21:19:59 +03:00
parent d3ab4a5145
commit a402128a7d
10 changed files with 1 additions and 11 deletions

View File

@ -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">

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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">

View File

@ -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">

View File

@ -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 %>

View File

@ -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" %>

View File

@ -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>