OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Rely on `AutoThemeSwitcherController#connect()` to set initial theme in place of inline head script (#19922)
Kabiru Mwenja9a6aa13289d2
diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erbindex 4ec5ede53d1..12a70d6c470 100644--- a/app/views/layouts/base.html.erb+++ b/app/views/layouts/base.html.erb@@ -40,15 +40,6 @@ See COPYRIGHT and LICENSE files for more details.<meta name="current_menu_item" content="<%= current_menu_item %>"/><%# Disable prefetching for now %><meta name="turbo-prefetch" content="false">- <%# Apply system theme immediately to prevent flickering %>- <% if User.current.pref.sync_with_os_theme? %>- <%= nonced_javascript_tag do %>- // Apply system theme before body renders to prevent flickering- (function() {- window.OpenProject.theme.applySystemThemeImmediately();- })();- <% end %>- <% end %></head><%= content_tag :body,class: "#{body_css_classes} __overflowing_element_container __overflowing_body",