docbrown/app/views/users/_font_selector.html.erb
ludwiczakpawel 16560d9ef1
Settings style updates: Crayons! (#7393)
* .

* .

* .

* snapshot

* whoops

* halifax

* tests

* little fixes

* little fixes

* test? i guess..

* .

* minor fixes

* Update schema.rb

* Use shared logo_design in new org partial

* little fix

* Fix org spec

* decrayonsifying rich-selector

* if statement

Co-authored-by: rhymes <rhymesete@gmail.com>
2020-04-22 19:18:19 +02:00

10 lines
376 B
Text

<label class="rich-selector crayons-field crayons-field--radio font-selector--<%= font.tr(" ", "-") %>">
<%= f.radio_button :config_font, font, checked: @user.config_font.tr("_", " ") == font, class: "crayons-radio" %>
<div class="crayons-field__label fw-normal">
<% if font == "default" %>
serif
<% else %>
<%= font %>
<% end %>
</div>
</label>