0
0
Fork 0

Spec coverage for custom css endpoint (#28706)

This commit is contained in:
Matt Jankowski 2024-01-12 04:19:25 -05:00 committed by GitHub
parent b86083f0dc
commit 7801db7ba4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 76 additions and 3 deletions

View file

@ -1,8 +1,8 @@
<%- if Setting.custom_css.present? %>
<%= raw Setting.custom_css %>
<%- if custom_css_styles.present? %>
<%= raw custom_css_styles %>
<%- end %>
<%- UserRole.where(highlighted: true).select { |role| role.color.present? }.each do |role| %>
<%- @user_roles.each do |role| %>
.user-role-<%= role.id %> {
--user-role-accent: <%= role.color %>;
}