Sha256: 7272edaf3446a68cf4f505564a64ee248fcbd31ef97bd01b83132bac1b877d27
Contents?: true
Size: 633 Bytes
Versions: 278
Compression:
Stored size: 633 Bytes
Contents
<% backgrounds = { info: 'bg-blue-500', success: 'bg-green-500', danger: 'bg-red-500', warning: 'bg-yellow-500', } label = @value background = :info @options.invert.each do |values, type| if [values].flatten.map { |value| value }.include? @value label = @value background = type.to_sym next end end classes = 'whitespace-nowrap rounded-md uppercase px-2 py-1 text-xs font-bold block text-center truncate ' classes += "#{backgrounds[background]} text-white" if backgrounds[background].present? %> <span class="<%= classes %>" style="max-width: 120px;"><%= label %></span>
Version data entries
278 entries across 278 versions & 1 rubygems