* Initial work for streaming app shell way of using serviceworkers * Close in on serviceworker adjustment finalization * Add docs and loading indicator * Remove useless code * Don't run on API * Update app/javascript/contentDisplayPolicy/hideBlockedContent.js * Fix small details * Don't run serviceworker.js code in test env * Fix JS in serviceworker * Move private keyword to proper place in async controller * Change shell_version to HEROKU_SLUG_COMMIT * Update caching config * Add test for async_info/shell_version
19 lines
785 B
Text
19 lines
785 B
Text
<!-- Start Bottom Shell -->
|
|
<% unless internal_navigation? %>
|
|
<% cache("footer-and-signup-modal--#{user_signed_in?}--#{ApplicationConfig['HEROKU_SLUG_COMMIT']}", expires_in: 24.hours) do %>
|
|
<%= render "layouts/footer" %>
|
|
<%= render "layouts/signup_modal" unless user_signed_in? %>
|
|
<% end %>
|
|
<div id="live-article-indicator" class="live-article-indicator"></div>
|
|
<%= image_tag("twitter-logo.svg", class: "icon-img", style: "display:none", alt: "twitter logo") %>
|
|
<%= image_tag("github-logo.svg", class: "icon-img", style: "display:none", alt: "github logo") %>
|
|
<% if @shell %>
|
|
<script defer>
|
|
if (!document.title) {
|
|
document.title = document.getElementsByTagName("TITLE")[1].innerHTML
|
|
}
|
|
</script>
|
|
<% end %>
|
|
</body>
|
|
</html>
|
|
<% end %>
|