Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

moving weather condition to title tag

  • Loading branch information...
commit b50c83be2589cb40ce90793d374883fc1aa954ba 1 parent 5dfbf99
@flecox flecox authored
View
2  docs/HISTORY.txt
@@ -6,7 +6,7 @@ Because you have to know where your towel is.
1.0a3 (unreleased)
^^^^^^^^^^^^^^^^^^
-- Nothing changed yet.
+- Weather conditions moved to title tag. [flecox]
1.0a2 (2012-09-14)
View
11 src/collective/weather/browser/templates/current_weather.pt
@@ -2,10 +2,13 @@
tal:omit-tag="">
<div tal:condition="view/weather_info">
<tal:block tal:define="current_weather python:view.weather_info['weather']">
- <img class="weather-icon" tal:attributes="src python:current_weather['icon']"/>
- <span class="weather-temp" tal:content="python:current_weather['temp']" />
- <span class="condition" tal:content="python:current_weather['conditions']"
- i18n:translate=""/>
+ <img class="weather-icon" tal:attributes="src python:current_weather['icon'];
+ title python:current_weather['conditions'];
+ alt python:current_weather['conditions']"
+ i18n:attributes="alt; title"/>
+ <span class="weather-temp" tal:content="python:current_weather['temp']"
+ tal:attributes="title python:current_weather['conditions'];"
+ i18n:attributes="title" />
</tal:block>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.