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

7 lines
466 B
Text
Raw Normal View History

2021-09-04 01:27:46 +05:30
- startup_filename_default = user_application_theme == 'gl-dark' ? 'dark' : 'general'
- startup_filename = local_assigns.fetch(:startup_filename, nil) || startup_filename_default
2020-11-24 15:15:51 +05:30
2021-03-11 19:13:27 +05:30
%style
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