debian-mirror-gitlab/app/views/layouts/_startup_css.haml

8 lines
421 B
Text
Raw Normal View History

2020-10-24 23:57:45 +05:30
- return unless use_startup_css?
2020-11-24 15:15:51 +05:30
- startup_filename = current_path?("sessions#new") ? 'signin' : user_application_theme == 'gl-dark' ? 'dark' : 'general'
2020-10-24 23:57:45 +05:30
%style{ type: "text/css" }
2020-11-24 15:15:51 +05:30
= Rails.application.assets_manifest.find_sources("themes/theme_#{user_application_theme_name}.css").first.to_s.html_safe
= Rails.application.assets_manifest.find_sources("startup/startup-#{startup_filename}.css").first.to_s.html_safe