mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 12:37:58 +01:00
14 lines
259 B
Elixir
14 lines
259 B
Elixir
|
defmodule PhilomenaWeb.Profile.AwardView do
|
||
|
use PhilomenaWeb, :view
|
||
|
|
||
|
def badge_options(badges) do
|
||
|
for badge <- badges do
|
||
|
[
|
||
|
key: badge.title,
|
||
|
value: badge.id,
|
||
|
data: [set_value: badge.description]
|
||
|
]
|
||
|
end
|
||
|
end
|
||
|
end
|