Sha256: 813c460c57a377275979ff6e24a4c32e026f34209d14dd37429119e29bde8553

Contents?: true

Size: 734 Bytes

Versions: 3

Compression:

Stored size: 734 Bytes

Contents

<%= content_tag(:div, id: 'thredded--container', class: thredded_container_classes, data: thredded_container_data) do %>
  <%= render 'thredded/shared/header' %>
  <%= render 'thredded/shared/flash_messages' %>
  <%= yield :thredded_page_content %>
  <%= render 'thredded/shared/currently_online' if Thredded.currently_online_enabled %>
<%- end %>

<%# If thredded JS is loaded via an [async] script, the JS may
run before or after DOMContentLoaded. Expose a flag to Thredded
so it can initialize correctly. %>
<%= javascript_tag 'data-turbolinks-eval': 'false', nonce: true do %>
  document.addEventListener('DOMContentLoaded', function() {
    (window.Thredded = window.Thredded || {}).DOMContentLoadedFired = true;
  });
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thredded-1.1.0 app/views/thredded/shared/_page.html.erb
thredded-1.0.1 app/views/thredded/shared/_page.html.erb
thredded-1.0.0 app/views/thredded/shared/_page.html.erb