Код: Выделить всё
select label,dateadded,headline,description,
case when label = 'Info' then 'blue'
when label = 'News' then 'orange'
when label = 'App Update' then 'red'
end the_color
from news
where dateon = sysdate
order by dateadded desc
Я уверен, что смогу заменить корпус на:
Код: Выделить всё
case when label = 'Info' then 'u-info-text'
when label = 'News' then 'u-warning-text'
when label = 'App Update' then 'u-danger-text'
end the_color
спасибо за помощь
Подробнее здесь: https://stackoverflow.com/questions/793 ... ful-colors
Мобильная версия