mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-02 23:57:59 +01:00
25 lines
898 B
Text
25 lines
898 B
Text
<div class="badges">
|
|
<% awards = award_order(@awards) %>
|
|
<% {awards, overflow} = Enum.split(awards, 10) %>
|
|
<%= for award <- awards do %>
|
|
<% title = [award_title(award), award.label] |> Enum.join(" - ") %>
|
|
<div class="badge">
|
|
<%= badge_image(award.badge, alt: title, title: title, width: "18", height: "18") %>
|
|
</div>
|
|
<% end %>
|
|
<%= if Enum.any?(overflow) do %>
|
|
<div class="dropdown">
|
|
<i class="fa fa-caret-down"></i>
|
|
<div class="dropdown__content block__header">
|
|
<div class="badges flex--column">
|
|
<%= for award <- overflow do %>
|
|
<% title = [award_title(award), award.label] |> Enum.join(" - ") %>
|
|
<div class="badge">
|
|
<%= badge_image(award.badge, alt: title, title: title, width: "18", height: "18") %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|