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