Fixed issues with application js order and flash messages (#387)

v2
farhatahmad 4 years ago committed by Jesus Federico
parent 404134aa8d
commit 79bb782319
  1. 4
      app/assets/javascripts/application.js
  2. 22
      app/views/layouts/application.html.erb

@ -26,9 +26,9 @@
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require turbolinks
//= require jquery
//= require jquery_ujs
//= require tabler
//= require tabler.plugins
//= require turbolinks
//= require jquery_ujs
//= require_tree .

@ -39,18 +39,22 @@
<div class="wrapper">
<% if bigbluebutton_endpoint_default? %>
<%= render "shared/error_banner" do %>
<i class="fas fa-exclamation-triangle"></i>
<p class="d-inline"><%= t("test_install",
href: link_to(t("docs").downcase, "http://docs.bigbluebutton.org/install/greenlight-v2.html#2-install-greenlight", target: "_blank")
).html_safe %>
<% end %>
<div class="alert alert-icon alert-danger text-center mb-0">
<div class="flash alert d-inline">
<i class="fas fa-exclamation-triangle"></i>
<p class="d-inline"><%= t("test_install",
href: link_to(t("docs").downcase, "http://docs.bigbluebutton.org/install/greenlight-v2.html#2-install-greenlight", target: "_blank")
).html_safe %>
</div>
</div>
<% end %>
<% unless Rails.configuration.banner_message.blank? %>
<%= render "shared/error_banner" do %>
<p class="d-inline"><%= Rails.configuration.banner_message %></p>
<% end %>
<div class="alert alert-icon alert-danger text-center mb-0">
<div class="flash alert d-inline">
<p class="d-inline"><%= Rails.configuration.banner_message %></p>
</div>
</div>
<% end %>
<%= yield %>