!!! %html{"data-bs-theme"=>@mode == "dark" ? "dark" : "light", :lang => I18n.locale} %head -unless @disable_bootstrap5_server_setting_header_code = ServerSetting.header_code -unless @disable_bootstrap5_header %title =yield :title = stylesheet_link_tag "bootstrap5", :media => "all" = javascript_include_tag "bootstrap5" = rescued_csrf_meta_tags %meta{:charset => "utf-8"}/ %meta{:content => "width=device-width, initial-scale=1, shrink-to-fit=no", :name => "viewport"}/ = yield :header %body = yield :body .d-none = HtmlContent.render("css_fixes") %div{class: @container_class || "container-fluid"} .row.justify-content-center -if flash.any? .col-12 - flash.each do |type, msg| -# if ['success', 'notice', 'error', 'warning', 'alert'].include? type.to_s = content_tag :div, :class => "alert alert-#{rename_devise_flash_keys(type, 3)} mt-3 alert-dismissible fade show" do %b = msg.html_safe %button.btn-close{"aria-label" => "Close", "data-bs-dismiss" => "alert", :type => "button"} %div{class: "#{@no_padding ? "p-0" : ""} #{@col_class.present? ? @col_class : "col-12"}"} = yield = missing_translation_key_warning = yield :javascript