thedrummeraki/tanoshimu

View on GitHub
app/components/show_thumbnail_component.html.erb

Summary

Maintainability
Test Coverage
<div class="no-overflow">
  <div role="have-fun" style="display: none;">
    <div class="card shadow-sm borderless d-flex align-items-stretch">
      <div class="image-card-container focusable">
        <div class="holder">
          <div class="overlay darken">
            <div class="justify-content-between d-flex top-tags-holder">
              <div class="sub-dub-holder justify-content-between">
                <% badges.each do |badge_args| %>
                  <%= render BadgeComponent.new(**badge_args) %>
                <% end %>
              </div>
            </div>
            <%= image_tag(@show.poster_url, onload: 'fadeIn(this)', onerror: 'fadeInError(this)', class: "card-img-top descriptive") %>
            <div class="hf-thumb-info description" style="width: 95%;">
              <span class="truncate">
                <%= @show.title %>
              </span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>