feat: display the current ET
This commit is contained in:
parent
705e7b1dc0
commit
6710137d9b
4 changed files with 23 additions and 9 deletions
|
@ -33,6 +33,11 @@
|
|||
<span class="progress-container">
|
||||
<span class="progress-bar" style="width: <%= (mins.in_minutes / 120) * 100 %>%"></span>
|
||||
</span>
|
||||
<% 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 %>
|
||||
</div>
|
||||
<div class="action needs_pwd">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue