<% APP_DATA[instance.zone.to_sym][:nms].each do |nm| %> <% is_popped = instance.pops.filter { |pop| (Time.current - 120.minutes) <= pop.created_at }.any? { |pop| pop.name == nm[:name].parameterize } %>
" alt="<%= nm[:element] %>" width="30" />

LV<%= nm[:level].to_s.rjust(2, "0") %> <%= nm[:name] %> <% if nm[:weather] %> <% end %>

« <%= nm[:spawned_by][:name] %> <% if nm[:spawned_by][:night_only] %> 🌙 <% end %> <% if nm[:spawned_by][:weather] %> <% end %> LV<%= nm[:spawned_by][:level].to_s.rjust(2, "0") %>
<% if is_popped %> <% pop = instance.pops.find { |pop| pop.name == nm[:name].parameterize } %> <% mins = ActiveSupport::Duration.build(Time.current - pop.created_at) %> » <%= (120.minutes - mins).in_minutes.floor %>m <% else %> <% if nm[:weather] && forecast[0][:curr_weather] != nm[:weather] %> <% next_pattern = forecast.find { |f| f[:curr_weather] == nm[:weather] } %> <%= Weather.get_weather_name(nm[:weather]) %> in <%= ((next_pattern[:time] - Time.now.utc) / 1.minutes).floor %>m <% end %> <% end %>
<% if is_popped %> <% else %> <% end %>
<% end %>