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

pull/3084/head
meow 2022-06-05 21:19:59 +03:00
rodzic d3ab4a5145
commit a402128a7d
10 zmienionych plików z 1 dodań i 11 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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