Skip to content

Commit

Permalink
no condition fix in full and card hero
Browse files Browse the repository at this point in the history
  • Loading branch information
Grace-Amondi committed Aug 20, 2023
1 parent 925eeea commit 8fdd115
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pages/home/static/js/weather_watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ $(document).ready(function () {
}

}
img.src = `${static_path}${icon.properties.condition_icon}` ? icon.properties.condition_icon !== 'None.png' : ''
img.src = `${static_path}${icon.properties.condition_icon}`
return img.src

})
Expand Down
8 changes: 4 additions & 4 deletions pages/home/templates/hero_types/card_hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@
<div class="columns is-mobile">
<div class="column weather-temp p-0 is-desktop" style="text-align:right">
{% if latest_forecast.data_value.air_temperature_max %}
<p style="font-size:40px; font-weight: 300"> {{ latest_forecast.data_value.air_temperature_max|floatformat:0 }}{{ settings.forecastmanager.ForecastSetting.get_temp_units_display }}</p>
<p style="font-size:40px; font-weight: 300"> {{ latest_forecast.data_value.air_temperature_max|floatformat:0 }}°C</p>
{% endif %}

{% if latest_forecast.data_value.air_temperature_min %}
<p style="font-size:20px; font-weight: 300"> {{ latest_forecast.data_value.air_temperature_min|floatformat:0 }}{{ settings.forecastmanager.ForecastSetting.get_temp_units_display }}</p>
<p style="font-size:20px; font-weight: 300"> {{ latest_forecast.data_value.air_temperature_min|floatformat:0 }}°C</p>
{% endif %}
</div>

Expand Down Expand Up @@ -146,11 +146,11 @@
<div>
<p>
{% if item.data_value.air_temperature_max %}
<span style="font-size:18px; font-weight:600">{{ item.data_value.air_temperature_max|floatformat:0 }} {{ settings.forecastmanager.ForecastSetting.get_temp_units_display }}</span>
<span style="font-size:18px; font-weight:600">{{ item.data_value.air_temperature_max|floatformat:0 }}°C</span>
{% endif %}

{% if item.data_value.air_temperature_min %}
<span style="font-size:12px">{{ item.data_value.air_temperature_min|floatformat:0 }} {{ settings.forecastmanager.ForecastSetting.get_temp_units_display }}</span>
<span style="font-size:12px">{{ item.data_value.air_temperature_min|floatformat:0 }}°C</span>
{% endif %}

</p>
Expand Down
4 changes: 2 additions & 2 deletions pages/home/templates/hero_types/full_hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@
<div>
<p>
{% if item.data_value.air_temperature_max %}
<span style="font-size:18px; font-weight:600">{{ item.data_value.air_temperature_max|floatformat:0 }} {{ settings.forecastmanager.ForecastSetting.get_temp_units_display }}</span>
<span style="font-size:18px; font-weight:600">{{ item.data_value.air_temperature_max|floatformat:0 }}°C</span>
{% endif %}

{% if item.data_value.air_temperature_min %}
<span style="font-size:12px">{{ item.data_value.air_temperature_min|floatformat:0 }} {{ settings.forecastmanager.ForecastSetting.get_temp_units_display }}</span>
<span style="font-size:12px">{{ item.data_value.air_temperature_min|floatformat:0 }}°C</span>
{% endif %}

</p>
Expand Down
8 changes: 4 additions & 4 deletions pages/home/templates/hero_types/half_hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@
<div class="columns is-mobile">
<div class="column weather-temp p-0 is-desktop" style="text-align:right">
{% if latest_forecast.data_value.air_temperature_max %}
<p style="font-size:40px; font-weight: 300" class="latest_max_temp"> {{ latest_forecast.data_value.air_temperature_max|floatformat:0 }}{{ settings.forecastmanager.ForecastSetting.get_temp_units_display }}</p>
<p style="font-size:40px; font-weight: 300" class="latest_max_temp"> {{ latest_forecast.data_value.air_temperature_max|floatformat:0 }}°C</p>
{% endif %}

{% if latest_forecast.data_value.air_temperature_min %}
<p style="font-size:20px; font-weight: 300" class="latest_min_temp"> {{ latest_forecast.data_value.air_temperature_min|floatformat:0 }}{{ settings.forecastmanager.ForecastSetting.get_temp_units_display }}</p>
<p style="font-size:20px; font-weight: 300" class="latest_min_temp"> {{ latest_forecast.data_value.air_temperature_min|floatformat:0 }}°C</p>
{% endif %}
</div>

Expand Down Expand Up @@ -151,11 +151,11 @@
<div>
<p>
{% if item.data_value.air_temperature_max %}
<span style="font-size:18px; font-weight:600">{{ item.data_value.air_temperature_max|floatformat:0 }} {{ settings.forecastmanager.ForecastSetting.get_temp_units_display }}</span>
<span style="font-size:18px; font-weight:600">{{ item.data_value.air_temperature_max|floatformat:0 }}°C</span>
{% endif %}

{% if item.data_value.air_temperature_min %}
<span style="font-size:12px">{{ item.data_value.air_temperature_min|floatformat:0 }} {{ settings.forecastmanager.ForecastSetting.get_temp_units_display }}</span>
<span style="font-size:12px">{{ item.data_value.air_temperature_min|floatformat:0 }}°C</span>
{% endif %}

</p>
Expand Down

0 comments on commit 8fdd115

Please sign in to comment.