Sha256: 86fb4b911a0d202595c1118c7ed83f650cdf13ef42cefc65f323fe0f378831c3
Contents?: true
Size: 1.85 KB
Versions: 85
Compression:
Stored size: 1.85 KB
Contents
<div class="relative flex-1 flex flex-col justify-between h-full" data-controller="dashboard-card" data-dashboard-card-target="card" data-refresh-every="<%= card.refresh_every %>" data-card-id="<%= card.id %>" data-card-index="<%= card.index %>"> <% if card.class.display_header %> <div class="px-4 pt-4"> <div class="flex justify-between items-center min-h-6"> <div class="text-base font-bold text-gray-700 leading-none"> <%= card.label %> </div> <div data-controller="select"> <% if card.type.in?([:metric, :chartkick, :partial]) && card.ranges.present? %> <%= select_tag "#{card.id}_#{card.index}_range", options_for_select(card.ranges, card.range), class: 'appearance-none inline-flex bg-blue-gray-100 disabled:bg-blue-gray-300 disabled:cursor-not-allowed focus:bg-white text-sm text-blue-gray-700 disabled:text-blue-gray-700 leading-none rounded-md py-px px-2 leading-tight border outline-none outline w-24', data: { target: 'select', action: 'change->select#onChange' } %> <% end %> </div> </div> </div> <% end %> <% if card.type == :chartkick %> <%= render 'chartkick_card', card: card %> <% elsif card.type === :partial %> <%= render card.class.partial %> <% elsif card.type === :metric %> <div class="flex-1 flex px-4 pb-4"> <%= render 'metric_card', card: card %> </div> <% end %> <% if card.description.present? %> <%= content_tag :div, class: "absolute inset-auto bottom-0 right-0 mb-4 mr-4", title: card.description, data: { target: 'card-description', tippy: 'tooltip', } do %> <%= helpers.svg 'heroicons/solid/information-circle', class: 'h-4 text-gray-500 cursor-pointer' %> <% end %> <% end %> </div>
Version data entries
85 entries across 85 versions & 1 rubygems