evodata/app/views/shared/_colored_pill.html.erb

3 lines
221 B
Plaintext
Raw Normal View History

2022-01-23 09:52:41 +01:00
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-<%= (defined?(color) && color.presence) || "gray" %>-100 text-<%= (defined?(color) && color.presence) || "gray" %>-800">
<%= yield %>
</span>