" class="icon"> Notifications "> <%= # todo: unhardcode public dir location File.read("public/assets/icons/bell.svg") %>
<%- notifications.each() do |notif| -%>
">
<%= case notif[:type] when "authored_level_featured", "authored_level_rated" difficulty = notif[:details]["difficulty"]?.as?(Int64).try { |n| LevelDifficulty.new(n.to_i32) } "" end %>
<%= Notifications.format_notification(notif[:type], notif[:target], notif[:details], html_safe: true) %>
<%- end -%>