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

8 lines
462 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" }
2021-01-03 14:25:43 +05:30
= Rails.application.assets_manifest.find_sources("themes/#{user_application_theme_css_filename}.css").first.to_s.html_safe if user_application_theme_css_filename
2020-11-24 15:15:51 +05:30
= Rails.application.assets_manifest.find_sources("startup/startup-#{startup_filename}.css").first.to_s.html_safe