Sha256: e0deff25a73d6e7f91d99dabf76be6874d41f9af5507e4365edab2ba1d3cd377

Contents?: true

Size: 463 Bytes

Versions: 17

Compression:

Stored size: 463 Bytes

Contents

<div class="js-offline-message hidden">
  <%= cell("decidim/announcement", t(".cache_version_page"), callout_class: "alert" ) %>
</div>
<script>
  document.addEventListener("DOMContentLoaded", () => {
    // show the banner if it is offline AND the offline-fallback is not displaying
    if (!navigator.onLine && !document.querySelector("#offline-fallback-html")) {
      document.querySelector(".js-offline-message").style.display = "block"
    }
  })
</script>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
decidim-core-0.30.0.rc2 app/views/layouts/decidim/_offline_banner.html.erb
decidim-core-0.30.0.rc1 app/views/layouts/decidim/_offline_banner.html.erb
decidim-core-0.29.2 app/views/layouts/decidim/_offline_banner.html.erb
decidim-core-0.28.5 app/views/layouts/decidim/_offline_banner.html.erb
decidim-core-0.29.1 app/views/layouts/decidim/_offline_banner.html.erb
decidim-core-0.28.4 app/views/layouts/decidim/_offline_banner.html.erb
decidim-core-0.29.0 app/views/layouts/decidim/_offline_banner.html.erb
decidim-core-0.28.3 app/views/layouts/decidim/_offline_banner.html.erb
decidim-core-0.29.0.rc4 app/views/layouts/decidim/_offline_banner.html.erb
decidim-core-0.29.0.rc3 app/views/layouts/decidim/_offline_banner.html.erb
decidim-core-0.29.0.rc2 app/views/layouts/decidim/_offline_banner.html.erb
decidim-core-0.29.0.rc1 app/views/layouts/decidim/_offline_banner.html.erb
decidim-core-0.28.2 app/views/layouts/decidim/_offline_banner.html.erb
decidim-core-0.28.1 app/views/layouts/decidim/_offline_banner.html.erb
decidim-core-0.28.0 app/views/layouts/decidim/_offline_banner.html.erb
decidim-core-0.28.0.rc5 app/views/layouts/decidim/_offline_banner.html.erb
decidim-core-0.28.0.rc4 app/views/layouts/decidim/_offline_banner.html.erb