From dd6d216c038e73468faa469ea7eabbc9386e172e Mon Sep 17 00:00:00 2001 From: Ben Bradford Date: Mon, 25 Mar 2024 13:55:39 -0500 Subject: [PATCH] oak wilt formatting --- app/views/thermal_models/_oak_wilt_all_dds.html.erb | 8 +++++--- app/views/thermal_models/oak_wilt_dd.html.erb | 4 +--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/thermal_models/_oak_wilt_all_dds.html.erb b/app/views/thermal_models/_oak_wilt_all_dds.html.erb index c4ed03c..48e561a 100644 --- a/app/views/thermal_models/_oak_wilt_all_dds.html.erb +++ b/app/views/thermal_models/_oak_wilt_all_dds.html.erb @@ -9,8 +9,9 @@ - + + @@ -23,10 +24,11 @@ + - - + + <% end %> diff --git a/app/views/thermal_models/oak_wilt_dd.html.erb b/app/views/thermal_models/oak_wilt_dd.html.erb index e225d30..e392528 100644 --- a/app/views/thermal_models/oak_wilt_dd.html.erb +++ b/app/views/thermal_models/oak_wilt_dd.html.erb @@ -28,13 +28,11 @@ Location: <%= @latitude %>°N, <%= @longitude %>°W (<%= link_to "show on Google maps", "https://www.google.com/maps/search/?api=1&query=#{@latitude},#{@longitude}", target: "_blank" %>)
Date range: January 1, <%= @end_date.strftime("%Y") %> to <%= @end_date.strftime("%B %d, %Y") %>

Degree day model: Base 41°F
- Total degree days: <%= @data.last[:cumulative_value] %> Fahrenheit degree days
+ Total degree days: <%= sprintf("%.1f", @data.last[:cumulative_value]) %> Fahrenheit degree days
Oak wilt high risk period: 231 - 2172 degree days and date prior to July 15

Predicted risk: <%= @risk %>

-
-

Recommendation for <%= @end_date.strftime("%b %d, %Y") %>:

Day DateDay Min
temp
(°F)
Max
temp
(°F)
FDDs
<%= i + 1 %> <%= day[:date] %><%= Date.parse(day[:date])&.strftime("%b %-d") %> <%= fmt_temp(day[:min_temp]) %> <%= fmt_temp(day[:max_temp]) %><%= day[:value] %><%= day[:cumulative_value] %><%= sprintf("%.1f", day[:value]) %><%= sprintf("%.1f", day[:cumulative_value]) %> <%= day[:risk] %>