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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
621 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
2022-06-21 17:19:12 +05:30
- diffs_colors = user_diffs_colors
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
2022-06-21 17:19:12 +05:30
= render 'layouts/diffs_colors_css', diffs_colors if diffs_colors.present? || request.path == profile_preferences_path