Answer the question
In order to leave comments, you need to log in
How to write different styles in one line?
How to properly style dynamic content for the KONSTANTINOPOLSKY / KONSTANTIN KONSTANTINOVICH field. I use slim gem. It is necessary to put the last name in bold, and pull up the first and middle name after it. Here is an example code for slim
.bold_line
= "#{order.client.first_name} / "
= order.client.name.short_name_to_ticket
Answer the question
In order to leave comments, you need to log in
As an option:
But it is better to leave your version, as it is more understandable when reading.
<span class="bold">Иванов</span>, <span>Иван Иваныч</span>
.bold { font-weight:bold; }
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question